summaryrefslogtreecommitdiff
path: root/test/message
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-03-07 02:30:18 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2018-03-15 20:50:35 +0800
commitc2b01881dcb3bf302f9d83157e719cc5240a9042 (patch)
tree55446f6bda8c376cc52a7be2c139e2cc9236ae2d /test/message
parent8484b40b3d38e18c524b7dd560c16ab30c94e427 (diff)
downloadandroid-node-v8-c2b01881dcb3bf302f9d83157e719cc5240a9042.tar.gz
android-node-v8-c2b01881dcb3bf302f9d83157e719cc5240a9042.tar.bz2
android-node-v8-c2b01881dcb3bf302f9d83157e719cc5240a9042.zip
lib: restructure cjs and esm loaders
Create `lib/internal/modules` and restructure the module loaders to make the purpose of those files clearer. Also make it clear in the code that the object exported by `lib/internal/modules/cjs/loader.js` is `CJSModule` instead of the ambiguous `Module`. Before: ``` lib ├── ... ├── internal │ ├── loaders │ │ ├── CreateDynamicModule.js │ │ ├── DefaultResolve.js │ │ ├── Loader.js │ │ ├── ModuleJob.js │ │ ├── ModuleMap.js │ │ └── Translators.js │ └── module.js └── module.js ``` After: ``` lib ├── ... ├── internal │ ├── ... │ └── modules │ ├── cjs │ │ ├── helpers.js │ │ └── loader.js │ └── esm │ ├── CreateDynamicModule.js │ ├── DefaultResolve.js │ ├── Loader.js │ ├── ModuleJob.js │ ├── ModuleMap.js │ └── Translators.js └── module.js # deleted in this commit to work with git file mode ``` PR-URL: https://github.com/nodejs/node/pull/19177 Refs: https://github.com/nodejs/node/pull/19112 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'test/message')
-rw-r--r--test/message/core_line_numbers.out12
-rw-r--r--test/message/error_exit.out12
-rw-r--r--test/message/esm_display_syntax_error.out2
-rw-r--r--test/message/esm_display_syntax_error_import.out2
-rw-r--r--test/message/esm_display_syntax_error_import_module.out2
-rw-r--r--test/message/esm_display_syntax_error_module.out2
-rw-r--r--test/message/eval_messages.out8
-rw-r--r--test/message/events_unhandled_error_common_trace.out14
-rw-r--r--test/message/events_unhandled_error_nexttick.out14
-rw-r--r--test/message/events_unhandled_error_sameline.out14
-rw-r--r--test/message/if-error-has-good-stack.out12
-rw-r--r--test/message/nexttick_throw.out2
-rw-r--r--test/message/stdin_messages.out8
-rw-r--r--test/message/undefined_reference_in_new_context.out10
-rw-r--r--test/message/vm_display_runtime_error.out24
-rw-r--r--test/message/vm_display_syntax_error.out24
-rw-r--r--test/message/vm_dont_display_runtime_error.out12
-rw-r--r--test/message/vm_dont_display_syntax_error.out12
18 files changed, 93 insertions, 93 deletions
diff --git a/test/message/core_line_numbers.out b/test/message/core_line_numbers.out
index 5658a5a59e..b50e1678f4 100644
--- a/test/message/core_line_numbers.out
+++ b/test/message/core_line_numbers.out
@@ -6,10 +6,10 @@ RangeError: Invalid input
at error (punycode.js:42:*)
at Object.decode (punycode.js:*:*)
at Object.<anonymous> (*test*message*core_line_numbers.js:*:*)
- at Module._compile (module.js:*:*)
- at Object.Module._extensions..js (module.js:*:*)
- at Module.load (module.js:*:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*:*)
- at Function.Module.runMain (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:*:*)
+ at Module.load (internal/modules/cjs/loader.js:*:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*:*)
at startup (internal/bootstrap/node.js:*:*)
diff --git a/test/message/error_exit.out b/test/message/error_exit.out
index 2cbc4ad4fd..e7bcb05065 100644
--- a/test/message/error_exit.out
+++ b/test/message/error_exit.out
@@ -5,11 +5,11 @@ assert.js:*
AssertionError [ERR_ASSERTION]: 1 strictEqual 2
at Object.<anonymous> (*test*message*error_exit.js:*:*)
- at Module._compile (module.js:*:*)
- at Object.Module._extensions..js (module.js:*:*)
- at Module.load (module.js:*:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*:*)
- at Function.Module.runMain (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:*:*)
+ at Module.load (internal/modules/cjs/loader.js:*:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*:*)
at startup (internal/bootstrap/node.js:*:*)
at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*)
diff --git a/test/message/esm_display_syntax_error.out b/test/message/esm_display_syntax_error.out
index 57d39e6c79..4564fe06d5 100644
--- a/test/message/esm_display_syntax_error.out
+++ b/test/message/esm_display_syntax_error.out
@@ -3,4 +3,4 @@ file:///*/test/message/esm_display_syntax_error.mjs:3
await async () => 0;
^^^^^
SyntaxError: Unexpected reserved word
- at translators.set (internal/loader/Translators.js:*:*)
+ at translators.set (internal/modules/esm/Translators.js:*:*)
diff --git a/test/message/esm_display_syntax_error_import.out b/test/message/esm_display_syntax_error_import.out
index 617ecd09ef..02050d361e 100644
--- a/test/message/esm_display_syntax_error_import.out
+++ b/test/message/esm_display_syntax_error_import.out
@@ -3,4 +3,4 @@ file:///*/test/message/esm_display_syntax_error_import.mjs:6
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 ModuleJob._instantiate (internal/modules/esm/ModuleJob.js:*:*)
diff --git a/test/message/esm_display_syntax_error_import_module.out b/test/message/esm_display_syntax_error_import_module.out
index 2e7ea8e572..ae0bf331de 100644
--- a/test/message/esm_display_syntax_error_import_module.out
+++ b/test/message/esm_display_syntax_error_import_module.out
@@ -3,4 +3,4 @@ file:///*/test/fixtures/es-module-loaders/syntax-error-import.mjs:1
import { foo, notfound } from './module-named-exports';
^^^^^^^^
SyntaxError: The requested module './module-named-exports' does not provide an export named 'notfound'
- at ModuleJob._instantiate (internal/loader/ModuleJob.js:*:*)
+ at ModuleJob._instantiate (internal/modules/esm/ModuleJob.js:*:*)
diff --git a/test/message/esm_display_syntax_error_module.out b/test/message/esm_display_syntax_error_module.out
index 56bbac9307..fc0581c225 100644
--- a/test/message/esm_display_syntax_error_module.out
+++ b/test/message/esm_display_syntax_error_module.out
@@ -3,4 +3,4 @@ file:///*/test/fixtures/es-module-loaders/syntax-error.mjs:2
await async () => 0;
^^^^^
SyntaxError: Unexpected reserved word
- at translators.set (internal/loader/Translators.js:*:*)
+ at translators.set (internal/modules/esm/Translators.js:*:*)
diff --git a/test/message/eval_messages.out b/test/message/eval_messages.out
index 84772ffa48..d01dfe547c 100644
--- a/test/message/eval_messages.out
+++ b/test/message/eval_messages.out
@@ -7,7 +7,7 @@ SyntaxError: Strict mode code may not include a with statement
at createScript (vm.js:*:*)
at Object.runInThisContext (vm.js:*:*)
at Object.<anonymous> ([eval]-wrapper:*:*)
- at Module._compile (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
at evalScript (internal/bootstrap/node.js:*:*)
at startup (internal/bootstrap/node.js:*:*)
at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*)
@@ -22,7 +22,7 @@ Error: hello
at Script.runInThisContext (vm.js:*:*)
at Object.runInThisContext (vm.js:*:*)
at Object.<anonymous> ([eval]-wrapper:*:*)
- at Module._compile (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
at evalScript (internal/bootstrap/node.js:*:*)
at startup (internal/bootstrap/node.js:*:*)
at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*)
@@ -36,7 +36,7 @@ Error: hello
at Script.runInThisContext (vm.js:*:*)
at Object.runInThisContext (vm.js:*:*)
at Object.<anonymous> ([eval]-wrapper:*:*)
- at Module._compile (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
at evalScript (internal/bootstrap/node.js:*:*)
at startup (internal/bootstrap/node.js:*:*)
at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*)
@@ -50,7 +50,7 @@ ReferenceError: y is not defined
at Script.runInThisContext (vm.js:*:*)
at Object.runInThisContext (vm.js:*:*)
at Object.<anonymous> ([eval]-wrapper:*:*)
- at Module._compile (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
at evalScript (internal/bootstrap/node.js:*:*)
at startup (internal/bootstrap/node.js:*:*)
at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*)
diff --git a/test/message/events_unhandled_error_common_trace.out b/test/message/events_unhandled_error_common_trace.out
index 003446edaa..f6b74e9991 100644
--- a/test/message/events_unhandled_error_common_trace.out
+++ b/test/message/events_unhandled_error_common_trace.out
@@ -6,17 +6,17 @@ Error: foo:bar
at bar (*events_unhandled_error_common_trace.js:*:*)
at foo (*events_unhandled_error_common_trace.js:*:*)
at Object.<anonymous> (*events_unhandled_error_common_trace.js:*:*)
- at Module._compile (module.js:*:*)
- at Object.Module._extensions..js (module.js:*:*)
- at Module.load (module.js:*:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*:*)
- at Function.Module.runMain (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:*:*)
+ at Module.load (internal/modules/cjs/loader.js:*:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*:*)
at startup (internal/bootstrap/node.js:*:*)
Emitted 'error' event at:
at quux (*events_unhandled_error_common_trace.js:*:*)
at Object.<anonymous> (*events_unhandled_error_common_trace.js:*:*)
- at Module._compile (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
[... lines matching original stack trace ...]
at startup (internal/bootstrap/node.js:*:*)
at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*)
diff --git a/test/message/events_unhandled_error_nexttick.out b/test/message/events_unhandled_error_nexttick.out
index 5912f9fd38..e00580ce93 100644
--- a/test/message/events_unhandled_error_nexttick.out
+++ b/test/message/events_unhandled_error_nexttick.out
@@ -4,17 +4,17 @@ events.js:*
Error
at Object.<anonymous> (*events_unhandled_error_nexttick.js:*:*)
- at Module._compile (module.js:*:*)
- at Object.Module._extensions..js (module.js:*:*)
- at Module.load (module.js:*:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*:*)
- at Function.Module.runMain (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:*:*)
+ at Module.load (internal/modules/cjs/loader.js:*:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*:*)
at startup (internal/bootstrap/node.js:*:*)
at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*)
Emitted 'error' event at:
at process.nextTick (*events_unhandled_error_nexttick.js:*:*)
at process._tickCallback (internal/process/next_tick.js:*:*)
- at Function.Module.runMain (module.js:*:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*:*)
at startup (internal/bootstrap/node.js:*:*)
at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*)
diff --git a/test/message/events_unhandled_error_sameline.out b/test/message/events_unhandled_error_sameline.out
index dcbb45afbd..55841cdbc3 100644
--- a/test/message/events_unhandled_error_sameline.out
+++ b/test/message/events_unhandled_error_sameline.out
@@ -4,16 +4,16 @@ events.js:*
Error
at Object.<anonymous> (*events_unhandled_error_sameline.js:*:*)
- at Module._compile (module.js:*:*)
- at Object.Module._extensions..js (module.js:*:*)
- at Module.load (module.js:*:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*:*)
- at Function.Module.runMain (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:*:*)
+ at Module.load (internal/modules/cjs/loader.js:*:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*:*)
at startup (internal/bootstrap/node.js:*:*)
at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*)
Emitted 'error' event at:
at Object.<anonymous> (*events_unhandled_error_sameline.js:*:*)
- at Module._compile (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
[... lines matching original stack trace ...]
at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*)
diff --git a/test/message/if-error-has-good-stack.out b/test/message/if-error-has-good-stack.out
index 7aa58b0283..2a4dfe8fb2 100644
--- a/test/message/if-error-has-good-stack.out
+++ b/test/message/if-error-has-good-stack.out
@@ -11,9 +11,9 @@ AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error
at b (*if-error-has-good-stack.js:*:*)
at a (*if-error-has-good-stack.js:*:*)
at Object.<anonymous> (*if-error-has-good-stack.js:*:*)
- at Module._compile (module.js:*:*)
- at Object.Module._extensions..js (module.js:*:*)
- at Module.load (module.js:*:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*:*)
- at Function.Module.runMain (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:*:*)
+ at Module.load (internal/modules/cjs/loader.js:*:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*:*)
diff --git a/test/message/nexttick_throw.out b/test/message/nexttick_throw.out
index 798b208d7d..16e41f6343 100644
--- a/test/message/nexttick_throw.out
+++ b/test/message/nexttick_throw.out
@@ -5,6 +5,6 @@
ReferenceError: undefined_reference_error_maker is not defined
at *test*message*nexttick_throw.js:*:*
at process._tickCallback (internal/process/next_tick.js:*:*)
- at Function.Module.runMain (module.js:*:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*:*)
at startup (internal/bootstrap/node.js:*:*)
at bootstrapNodeJSCore (internal/bootstrap/node.js:*:*)
diff --git a/test/message/stdin_messages.out b/test/message/stdin_messages.out
index c6c37a5be4..d4498b452a 100644
--- a/test/message/stdin_messages.out
+++ b/test/message/stdin_messages.out
@@ -7,7 +7,7 @@ SyntaxError: Strict mode code may not include a with statement
at createScript (vm.js:*)
at Object.runInThisContext (vm.js:*)
at Object.<anonymous> ([stdin]-wrapper:*:*)
- at Module._compile (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
at evalScript (internal/bootstrap/node.js:*:*)
at Socket.<anonymous> (internal/bootstrap/node.js:*:*)
at Socket.emit (events.js:*:*)
@@ -24,7 +24,7 @@ Error: hello
at Script.runInThisContext (vm.js:*)
at Object.runInThisContext (vm.js:*)
at Object.<anonymous> ([stdin]-wrapper:*:*)
- at Module._compile (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
at evalScript (internal/bootstrap/node.js:*:*)
at Socket.<anonymous> (internal/bootstrap/node.js:*:*)
at Socket.emit (events.js:*:*)
@@ -39,7 +39,7 @@ Error: hello
at Script.runInThisContext (vm.js:*)
at Object.runInThisContext (vm.js:*)
at Object.<anonymous> ([stdin]-wrapper:*:*)
- at Module._compile (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
at evalScript (internal/bootstrap/node.js:*:*)
at Socket.<anonymous> (internal/bootstrap/node.js:*:*)
at Socket.emit (events.js:*:*)
@@ -55,7 +55,7 @@ ReferenceError: y is not defined
at Script.runInThisContext (vm.js:*)
at Object.runInThisContext (vm.js:*)
at Object.<anonymous> ([stdin]-wrapper:*:*)
- at Module._compile (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*:*)
at evalScript (internal/bootstrap/node.js:*:*)
at Socket.<anonymous> (internal/bootstrap/node.js:*:*)
at Socket.emit (events.js:*:*)
diff --git a/test/message/undefined_reference_in_new_context.out b/test/message/undefined_reference_in_new_context.out
index ff517cc981..6b5fedfa99 100644
--- a/test/message/undefined_reference_in_new_context.out
+++ b/test/message/undefined_reference_in_new_context.out
@@ -9,8 +9,8 @@ ReferenceError: foo is not defined
at Script.runInNewContext (vm.js:*)
at Object.runInNewContext (vm.js:*)
at Object.<anonymous> (*test*message*undefined_reference_in_new_context.js:*)
- at Module._compile (module.js:*)
- at *..js (module.js:*)
- at Module.load (module.js:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*:*)
+ at Module._compile (internal/modules/cjs/loader.js:*)
+ at *..js (internal/modules/cjs/loader.js:*)
+ at Module.load (internal/modules/cjs/loader.js:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*:*)
diff --git a/test/message/vm_display_runtime_error.out b/test/message/vm_display_runtime_error.out
index 056ea79f8d..bc95b2a7b0 100644
--- a/test/message/vm_display_runtime_error.out
+++ b/test/message/vm_display_runtime_error.out
@@ -8,12 +8,12 @@ Error: boo!
at Script.runInThisContext (vm.js:*)
at Object.runInThisContext (vm.js:*)
at Object.<anonymous> (*test*message*vm_display_runtime_error.js:*)
- at Module._compile (module.js:*)
- at Object.Module._extensions..js (module.js:*)
- at Module.load (module.js:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*)
- at Function.Module.runMain (module.js:*)
+ at Module._compile (internal/modules/cjs/loader.js:*)
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:*)
+ at Module.load (internal/modules/cjs/loader.js:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*)
test.vm:1
throw new Error("spooky!")
^
@@ -23,9 +23,9 @@ Error: spooky!
at Script.runInThisContext (vm.js:*)
at Object.runInThisContext (vm.js:*)
at Object.<anonymous> (*test*message*vm_display_runtime_error.js:*)
- at Module._compile (module.js:*)
- at Object.Module._extensions..js (module.js:*)
- at Module.load (module.js:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*)
- at Function.Module.runMain (module.js:*)
+ at Module._compile (internal/modules/cjs/loader.js:*)
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:*)
+ at Module.load (internal/modules/cjs/loader.js:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*)
diff --git a/test/message/vm_display_syntax_error.out b/test/message/vm_display_syntax_error.out
index f3b9953307..f0692723e8 100644
--- a/test/message/vm_display_syntax_error.out
+++ b/test/message/vm_display_syntax_error.out
@@ -7,12 +7,12 @@ SyntaxError: Unexpected number
at createScript (vm.js:*)
at Object.runInThisContext (vm.js:*)
at Object.<anonymous> (*test*message*vm_display_syntax_error.js:*)
- at Module._compile (module.js:*)
- at Object.Module._extensions..js (module.js:*)
- at Module.load (module.js:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*)
- at Function.Module.runMain (module.js:*)
+ at Module._compile (internal/modules/cjs/loader.js:*)
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:*)
+ at Module.load (internal/modules/cjs/loader.js:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*)
test.vm:1
var 5;
^
@@ -21,9 +21,9 @@ SyntaxError: Unexpected number
at createScript (vm.js:*)
at Object.runInThisContext (vm.js:*)
at Object.<anonymous> (*test*message*vm_display_syntax_error.js:*)
- at Module._compile (module.js:*)
- at Object.Module._extensions..js (module.js:*)
- at Module.load (module.js:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*)
- at Function.Module.runMain (module.js:*)
+ at Module._compile (internal/modules/cjs/loader.js:*)
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:*)
+ at Module.load (internal/modules/cjs/loader.js:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*)
diff --git a/test/message/vm_dont_display_runtime_error.out b/test/message/vm_dont_display_runtime_error.out
index a7e06d49f8..532cfbf4dd 100644
--- a/test/message/vm_dont_display_runtime_error.out
+++ b/test/message/vm_dont_display_runtime_error.out
@@ -9,9 +9,9 @@ Error: boo!
at Script.runInThisContext (vm.js:*)
at Object.runInThisContext (vm.js:*)
at Object.<anonymous> (*test*message*vm_dont_display_runtime_error.js:*)
- at Module._compile (module.js:*)
- at Object.Module._extensions..js (module.js:*)
- at Module.load (module.js:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*)
- at Function.Module.runMain (module.js:*)
+ at Module._compile (internal/modules/cjs/loader.js:*)
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:*)
+ at Module.load (internal/modules/cjs/loader.js:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*)
diff --git a/test/message/vm_dont_display_syntax_error.out b/test/message/vm_dont_display_syntax_error.out
index 5c74c25dd8..f27cb1a085 100644
--- a/test/message/vm_dont_display_syntax_error.out
+++ b/test/message/vm_dont_display_syntax_error.out
@@ -9,9 +9,9 @@ SyntaxError: Unexpected number
at createScript (vm.js:*)
at Object.runInThisContext (vm.js:*)
at Object.<anonymous> (*test*message*vm_dont_display_syntax_error.js:*)
- at Module._compile (module.js:*)
- at Object.Module._extensions..js (module.js:*)
- at Module.load (module.js:*)
- at tryModuleLoad (module.js:*:*)
- at Function.Module._load (module.js:*)
- at Function.Module.runMain (module.js:*)
+ at Module._compile (internal/modules/cjs/loader.js:*)
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:*)
+ at Module.load (internal/modules/cjs/loader.js:*)
+ at tryModuleLoad (internal/modules/cjs/loader.js:*:*)
+ at Function.Module._load (internal/modules/cjs/loader.js:*)
+ at Function.Module.runMain (internal/modules/cjs/loader.js:*)