Skip to content

Commit

Permalink
test: fix esm message tests after V8 update
Browse files Browse the repository at this point in the history
PR-URL: nodejs#18453
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Yang Guo <[email protected]>
Reviewed-By: Ali Ijaz Sheikh <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
targos committed Mar 7, 2018
1 parent bde8de8 commit 5c8937c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion test/message/esm_display_syntax_error.out
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ await async () => 0;
^^^^^
SyntaxError: Unexpected reserved word
at translators.set (internal/loader/Translators.js:*:*)
at <anonymous>
3 changes: 1 addition & 2 deletions test/message/esm_display_syntax_error_import.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
file:https:///*/test/message/esm_display_syntax_error_import.mjs:6
notfound
^^^^^^^^
SyntaxError: The requested module does not provide an export named 'notfound'
SyntaxError: The requested module '../fixtures/es-module-loaders/module-named-exports' does not provide an export named 'notfound'
at ModuleJob._instantiate (internal/loader/ModuleJob.js:*:*)
at <anonymous>
3 changes: 1 addition & 2 deletions test/message/esm_display_syntax_error_import_module.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
file:https:///*/test/fixtures/es-module-loaders/syntax-error-import.mjs:1
import { foo, notfound } from './module-named-exports';
^^^^^^^^
SyntaxError: The requested module does not provide an export named 'notfound'
SyntaxError: The requested module './module-named-exports' does not provide an export named 'notfound'
at ModuleJob._instantiate (internal/loader/ModuleJob.js:*:*)
at <anonymous>
1 change: 0 additions & 1 deletion test/message/esm_display_syntax_error_module.out
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ await async () => 0;
^^^^^
SyntaxError: Unexpected reserved word
at translators.set (internal/loader/Translators.js:*:*)
at <anonymous>

0 comments on commit 5c8937c

Please sign in to comment.