From bd5c8772aadcb25b4a4b4268e338cd00a6f46cec Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Tue, 5 Mar 2019 22:17:11 -0500 Subject: [PATCH] fixup: fix broken tests --- doc/api/cli.md | 2 +- test/message/esm_display_syntax_error.out | 1 + test/message/esm_display_syntax_error_module.out | 3 ++- test/parallel/test-loaders-unknown-builtin-module.mjs | 3 ++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index b88d35bf32..62e13496c0 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -911,7 +911,7 @@ greater than `4` (its current default value). For more information, see the [debugger]: debugger.html [debugging security implications]: https://nodejs.org/en/docs/guides/debugging-getting-started/#security-implications [emit_warning]: process.html#process_process_emitwarning_warning_type_code_ctor -[experimental ECMAScript Module]: esm.html#esm_loader_hooks +[experimental ECMAScript Module]: esm.html#esm_experimental_loader_hooks [libuv threadpool documentation]: http://docs.libuv.org/en/latest/threadpool.html [remote code execution]: https://www.owasp.org/index.php/Code_Injection [secureProtocol]: tls.html#tls_tls_createsecurecontext_options diff --git a/test/message/esm_display_syntax_error.out b/test/message/esm_display_syntax_error.out index 2700fd894c..8f17d5cd7a 100644 --- a/test/message/esm_display_syntax_error.out +++ b/test/message/esm_display_syntax_error.out @@ -2,5 +2,6 @@ file:///*/test/message/esm_display_syntax_error.mjs:3 await async () => 0; ^^^^^ + SyntaxError: Unexpected reserved word at Loader. (internal/modules/esm/translators.js:*:*) diff --git a/test/message/esm_display_syntax_error_module.out b/test/message/esm_display_syntax_error_module.out index e636abad9e..7dbbd32f1f 100644 --- a/test/message/esm_display_syntax_error_module.out +++ b/test/message/esm_display_syntax_error_module.out @@ -2,5 +2,6 @@ file:///*/test/fixtures/es-module-loaders/syntax-error.mjs:2 await async () => 0; ^^^^^ + SyntaxError: Unexpected reserved word - at translators.set (internal/modules/esm/translators.js:*:*) + at Loader. (internal/modules/esm/translators.js:*:*) diff --git a/test/parallel/test-loaders-unknown-builtin-module.mjs b/test/parallel/test-loaders-unknown-builtin-module.mjs index db3cfa3582..5f47f191f5 100644 --- a/test/parallel/test-loaders-unknown-builtin-module.mjs +++ b/test/parallel/test-loaders-unknown-builtin-module.mjs @@ -1,5 +1,6 @@ // Flags: --experimental-modules --loader ./test/fixtures/es-module-loaders/loader-unknown-builtin-module.mjs -import { expectsError, mustCall } from '../common'; +/* eslint-disable node-core/required-modules */ +import { expectsError, mustCall } from '../common/index.mjs'; import assert from 'assert'; const unknownBuiltinModule = 'unknown-builtin-module';