summaryrefslogtreecommitdiff
path: root/.eslintignore
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2017-11-24 01:50:28 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2017-11-29 12:06:09 +0100
commit597b3d1941b09d20781b56c6f154cd39acb8dcb0 (patch)
treee1ebb576026ad95ad3032bac5be41c9aee44e0d9 /.eslintignore
parent6c470330248c7df02ef90e7278f6a11b8b6a43f8 (diff)
downloadandroid-node-v8-597b3d1941b09d20781b56c6f154cd39acb8dcb0.tar.gz
android-node-v8-597b3d1941b09d20781b56c6f154cd39acb8dcb0.tar.bz2
android-node-v8-597b3d1941b09d20781b56c6f154cd39acb8dcb0.zip
module: print better message on esm syntax error
Include the offending line in the output and underline the bad token. Before this commit, it printed "SyntaxError: Unexpected reserved word" without indicating where the syntax error is. Now it prints the line and underlines the offending token, like it does for syntax errors in CJS scripts. Minor changes are made to the test runner in order to support `*.mjs` files in test/message. Fixes: https://github.com/nodejs/node/issues/17277 PR-URL: https://github.com/nodejs/node/pull/17281 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to '.eslintignore')
-rw-r--r--.eslintignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintignore b/.eslintignore
index 9b1d8b3f35..dc4e023866 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -3,6 +3,7 @@ lib/internal/v8_prof_polyfill.js
lib/punycode.js
test/addons/??_*
test/fixtures
+test/message/esm_display_syntax_error.mjs
tools/eslint
tools/icu
tools/remark-*