From 21782277c24dd9bf23ff6c4bd3e4dfda0ffde4bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sun, 4 Oct 2020 10:26:20 +0200 Subject: [PATCH] src: use node:moduleName as builtin module filename This change allows for easier recognition of builtin modules in stack traces. Refs: https://github.com/nodejs/node/issues/11893 PR-URL: https://github.com/nodejs/node/pull/35498 Reviewed-By: Joyee Cheung Reviewed-By: Antoine du Hamel Reviewed-By: Rich Trott Reviewed-By: Zeyu Yang --- lib/assert.js | 6 +- lib/internal/util/inspect.js | 2 +- src/node_native_module.cc | 2 +- test/message/assert_throws_stack.out | 6 +- test/message/async_error_nexttick_main.out | 2 +- test/message/core_line_numbers.out | 18 ++--- test/message/error_exit.out | 14 ++-- test/message/error_with_nul.out | Bin 549 -> 561 bytes test/message/esm_display_syntax_error.out | 4 +- .../esm_display_syntax_error_import.out | 8 +-- ...esm_display_syntax_error_import_module.out | 8 +-- .../esm_display_syntax_error_module.out | 2 +- test/message/esm_loader_not_found.out | 22 +++--- .../esm_loader_not_found_cjs_hint_bare.out | 18 ++--- ...esm_loader_not_found_cjs_hint_relative.out | 22 +++--- test/message/esm_loader_syntax_error.out | 4 +- test/message/eval_messages.out | 42 +++++------ .../events_unhandled_error_common_trace.out | 18 ++--- .../events_unhandled_error_nexttick.out | 16 ++--- .../events_unhandled_error_sameline.out | 18 ++--- .../events_unhandled_error_subclass.out | 18 ++--- test/message/if-error-has-good-stack.out | 26 +++---- test/message/internal_assert.out | 6 +- test/message/internal_assert_fail.out | 6 +- test/message/nexttick_throw.out | 2 +- .../source_map_reference_error_tabs.out | 14 ++-- test/message/source_map_throw_catch.out | 14 ++-- test/message/source_map_throw_first_tick.out | 14 ++-- test/message/source_map_throw_icu.out | 14 ++-- .../source_map_throw_set_immediate.out | 2 +- test/message/stdin_messages.out | 66 +++++++++--------- .../throw_error_with_getter_throw_traced.out | 12 ++-- test/message/throw_null_traced.out | 12 ++-- test/message/throw_undefined_traced.out | 12 ++-- test/message/timeout_throw.out | 4 +- .../undefined_reference_in_new_context.out | 16 ++--- .../unhandled_promise_trace_warnings.out | 4 +- test/message/vm_display_runtime_error.out | 32 ++++----- test/message/vm_display_syntax_error.out | 36 +++++----- .../message/vm_dont_display_runtime_error.out | 16 ++--- test/message/vm_dont_display_syntax_error.out | 18 ++--- .../test-inspector-inspect-brk-node.js | 2 +- test/parallel/test-util-inspect.js | 14 ++-- test/pseudo-tty/console_colors.out | 6 +- test/pseudo-tty/test-fatal-error.out | 8 +-- ...spector-async-hook-setup-at-inspect-brk.js | 2 +- ...spector-async-stack-traces-set-interval.js | 2 +- 47 files changed, 306 insertions(+), 304 deletions(-) diff --git a/lib/assert.js b/lib/assert.js index 08ef18240925ba..2b38c8fcade8c9 100644 --- a/lib/assert.js +++ b/lib/assert.js @@ -30,6 +30,8 @@ const { NumberIsNaN, RegExpPrototypeTest, String, + StringPrototypeSlice, + StringPrototypeStartsWith, } = primordials; const { Buffer } = require('buffer'); @@ -289,8 +291,8 @@ function getErrMessage(message, fn) { identifier = `${filename}${line}${column}`; // Skip Node.js modules! - if (filename.endsWith('.js') && - NativeModule.exists(filename.slice(0, -3))) { + if (StringPrototypeStartsWith(filename, 'node:') && + NativeModule.exists(StringPrototypeSlice(filename, 5))) { errorCache.set(identifier, undefined); return; } diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index c73ab5a037fd78..e6787760fea392 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -183,7 +183,7 @@ const strEscapeSequencesReplacerSingle = /[\x00-\x1f\x5c\x7f-\x9f]/g; const keyStrRegExp = /^[a-zA-Z_][a-zA-Z_0-9]*$/; const numberRegExp = /^(0|[1-9][0-9]*)$/; -const coreModuleRegExp = /^ at (?:[^/\\(]+ \(|)((? NativeModuleLoader::LookupAndCompile( return {}; } - std::string filename_s = id + std::string(".js"); + std::string filename_s = std::string("node:") + id; Local filename = OneByteString(isolate, filename_s.c_str(), filename_s.size()); Local line_offset = Integer::New(isolate, 0); diff --git a/test/message/assert_throws_stack.out b/test/message/assert_throws_stack.out index a2da1f2b6c5b37..6841630d03b195 100644 --- a/test/message/assert_throws_stack.out +++ b/test/message/assert_throws_stack.out @@ -1,4 +1,4 @@ -assert.js:* +node:assert:* throw err; ^ @@ -20,8 +20,8 @@ AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: code: 'ERR_ASSERTION', actual: Error: foo at assert.throws.bar (*assert_throws_stack.js:*) - at getActual (assert.js:*) - at Function.throws (assert.js:*) + at getActual (node:assert:*) + at Function.throws (node:assert:*) at Object. (*assert_throws_stack.js:*:*) at * at * diff --git a/test/message/async_error_nexttick_main.out b/test/message/async_error_nexttick_main.out index c6ac1e418086ac..8d11dea63d4191 100644 --- a/test/message/async_error_nexttick_main.out +++ b/test/message/async_error_nexttick_main.out @@ -1,7 +1,7 @@ Error: test at one (*fixtures*async-error.js:4:9) at two (*fixtures*async-error.js:17:9) - at processTicksAndRejections (internal/process/task_queues.js:*:*) + at processTicksAndRejections (node:internal/process/task_queues:*:*) at async three (*fixtures*async-error.js:20:3) at async four (*fixtures*async-error.js:24:3) at async main (*message*async_error_nexttick_main.js:7:5) diff --git a/test/message/core_line_numbers.out b/test/message/core_line_numbers.out index 26f74589532908..215542404be02f 100644 --- a/test/message/core_line_numbers.out +++ b/test/message/core_line_numbers.out @@ -1,14 +1,14 @@ -punycode.js:42 +node:punycode:42 throw new RangeError(errors[type]); ^ RangeError: Invalid input - at error (punycode.js:42:8) - at Object.decode (punycode.js:*:*) + at error (node:punycode:42:8) + at Object.decode (node:punycode:*:*) at Object. (*test*message*core_line_numbers.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 Function.Module._load (internal/modules/cjs/loader.js:*:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*) + at Module.load (node:internal/modules/cjs/loader:*:*) + at Function.Module._load (node:internal/modules/cjs/loader:*:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*) + at node:internal/main/run_main_module:*:* diff --git a/test/message/error_exit.out b/test/message/error_exit.out index 19cd11304e2a77..2ef95b535dafe7 100644 --- a/test/message/error_exit.out +++ b/test/message/error_exit.out @@ -1,5 +1,5 @@ Exiting with code=1 -assert.js:* +node:assert:* throw new AssertionError(obj); ^ @@ -8,12 +8,12 @@ AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: 1 !== 2 at Object. (*test*message*error_exit.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 Function.Module._load (internal/modules/cjs/loader.js:*:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*:*) - at internal/main/run_main_module.js:*:* { + at Module._compile (node:internal/modules/cjs/loader:*:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*) + at Module.load (node:internal/modules/cjs/loader:*:*) + at Function.Module._load (node:internal/modules/cjs/loader:*:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*) + at node:internal/main/run_main_module:*:* { generatedMessage: true, code: 'ERR_ASSERTION', actual: 1, diff --git a/test/message/error_with_nul.out b/test/message/error_with_nul.out index 396d94debf0058b49d9be19dcc6519486b9f8a6d..7fbb33f08e8dc342b9efc899e66f5e3350e9489b 100644 GIT binary patch delta 141 zcmZ3=vXN!NZq~f~lvJz9^^DRJZ|Wd8@>W__TAEx6K#*9X;G3UPnv<%Rlb@KPpaIt~ yIhs)gp=0t~Mk@obTxMQLYEfQdj(#p!Td{soXNGwtC%}*)KN!82APfStJfGVAw v$f$x~icQ|lsG^yfSCU$kmzblU3)WDqUsReGpPQJOhi>3xekNHCs2~>rINB*5 diff --git a/test/message/esm_display_syntax_error.out b/test/message/esm_display_syntax_error.out index 775448d4b68afd..f1b7ff4e2290ee 100644 --- a/test/message/esm_display_syntax_error.out +++ b/test/message/esm_display_syntax_error.out @@ -3,5 +3,5 @@ await async () => 0; ^^^^^ SyntaxError: Unexpected reserved word - at Loader.moduleStrategy (internal/modules/esm/translators.js:*:*) - at async link (internal/modules/esm/module_job.js:*:*) + at Loader.moduleStrategy (node:internal/modules/esm/translators:*:*) + at async link (node:internal/modules/esm/module_job:*:*) diff --git a/test/message/esm_display_syntax_error_import.out b/test/message/esm_display_syntax_error_import.out index fe174d54a5c49f..8f94e4a5cf16eb 100644 --- a/test/message/esm_display_syntax_error_import.out +++ b/test/message/esm_display_syntax_error_import.out @@ -2,7 +2,7 @@ file:///*/test/message/esm_display_syntax_error_import.mjs:5 notfound ^^^^^^^^ SyntaxError: The requested module '../fixtures/es-module-loaders/module-named-exports.mjs' does not provide an export named 'notfound' - at ModuleJob._instantiate (internal/modules/esm/module_job.js:*:*) - at async ModuleJob.run (internal/modules/esm/module_job.js:*:*) - at async Loader.import (internal/modules/esm/loader.js:*:*) - at async Object.loadESM (internal/process/esm_loader.js:*:*) + at ModuleJob._instantiate (node:internal/modules/esm/module_job:*:*) + at async ModuleJob.run (node:internal/modules/esm/module_job:*:*) + at async Loader.import (node:internal/modules/esm/loader:*:*) + at async Object.loadESM (node:internal/process/esm_loader:*:*) diff --git a/test/message/esm_display_syntax_error_import_module.out b/test/message/esm_display_syntax_error_import_module.out index d220627bd02654..fe13011c4aa445 100644 --- a/test/message/esm_display_syntax_error_import_module.out +++ b/test/message/esm_display_syntax_error_import_module.out @@ -2,7 +2,7 @@ file:///*/test/fixtures/es-module-loaders/syntax-error-import.mjs:1 import { foo, notfound } from './module-named-exports.mjs'; ^^^^^^^^ SyntaxError: The requested module './module-named-exports.mjs' does not provide an export named 'notfound' - at ModuleJob._instantiate (internal/modules/esm/module_job.js:*:*) - at async ModuleJob.run (internal/modules/esm/module_job.js:*:*) - at async Loader.import (internal/modules/esm/loader.js:*:*) - at async Object.loadESM (internal/process/esm_loader.js:*:*) + at ModuleJob._instantiate (node:internal/modules/esm/module_job:*:*) + at async ModuleJob.run (node:internal/modules/esm/module_job:*:*) + at async Loader.import (node:internal/modules/esm/loader:*:*) + at async Object.loadESM (node:internal/process/esm_loader:*:*) diff --git a/test/message/esm_display_syntax_error_module.out b/test/message/esm_display_syntax_error_module.out index c45a5008e691ca..fc0912a96c0d26 100644 --- a/test/message/esm_display_syntax_error_module.out +++ b/test/message/esm_display_syntax_error_module.out @@ -3,4 +3,4 @@ await async () => 0; ^^^^^^^^^^^^^ SyntaxError: Malformed arrow function parameter list - at Loader.moduleStrategy (internal/modules/esm/translators.js:*:*) \ No newline at end of file + at Loader.moduleStrategy (node:internal/modules/esm/translators:*:*) diff --git a/test/message/esm_loader_not_found.out b/test/message/esm_loader_not_found.out index 61291a9bbc5ec1..d2329d7c77ad86 100644 --- a/test/message/esm_loader_not_found.out +++ b/test/message/esm_loader_not_found.out @@ -1,18 +1,18 @@ (node:*) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time (Use `* --trace-warnings ...` to show where the warning was created) -internal/process/esm_loader.js:* +node:internal/process/esm_loader:* internalBinding('errors').triggerUncaughtException( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'i-dont-exist' imported from * - at new NodeError (internal/errors.js:*:*) - at packageResolve (internal/modules/esm/resolve.js:*:*) - at moduleResolve (internal/modules/esm/resolve.js:*:*) - at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:*:*) - at Loader.resolve (internal/modules/esm/loader.js:*:*) - at Loader.getModuleJob (internal/modules/esm/loader.js:*:*) - at Loader.import (internal/modules/esm/loader.js:*:*) - at internal/process/esm_loader.js:*:* - at initializeLoader (internal/process/esm_loader.js:*:*) - at Object.loadESM (internal/process/esm_loader.js:*:*) { + at new NodeError (node:internal/errors:*:*) + at packageResolve (node:internal/modules/esm/resolve:*:*) + at moduleResolve (node:internal/modules/esm/resolve:*:*) + at Loader.defaultResolve [as _resolve] (node:internal/modules/esm/resolve:*:*) + at Loader.resolve (node:internal/modules/esm/loader:*:*) + at Loader.getModuleJob (node:internal/modules/esm/loader:*:*) + at Loader.import (node:internal/modules/esm/loader:*:*) + at node:internal/process/esm_loader:*:* + at initializeLoader (node:internal/process/esm_loader:*:*) + at Object.loadESM (node:internal/process/esm_loader:*:*) { code: 'ERR_MODULE_NOT_FOUND' } diff --git a/test/message/esm_loader_not_found_cjs_hint_bare.out b/test/message/esm_loader_not_found_cjs_hint_bare.out index c6164006300094..aaeed40ed60013 100644 --- a/test/message/esm_loader_not_found_cjs_hint_bare.out +++ b/test/message/esm_loader_not_found_cjs_hint_bare.out @@ -1,16 +1,16 @@ -internal/process/esm_loader.js:* +node:internal/process/esm_loader:* internalBinding('errors').triggerUncaughtException( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '*test*fixtures*node_modules*some_module*obj' imported from *test*fixtures*esm_loader_not_found_cjs_hint_bare.mjs Did you mean to import some_module/obj.js? - at new NodeError (internal/errors.js:*:*) - at finalizeResolution (internal/modules/esm/resolve.js:*:*) - at moduleResolve (internal/modules/esm/resolve.js:*:*) - at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:*:*) - at Loader.resolve (internal/modules/esm/loader.js:*:*) - at Loader.getModuleJob (internal/modules/esm/loader.js:*:*) - at ModuleWrap. (internal/modules/esm/module_job.js:*:*) - at link (internal/modules/esm/module_job.js:*:*) { + at new NodeError (node:internal/errors:*:*) + at finalizeResolution (node:internal/modules/esm/resolve:*:*) + at moduleResolve (node:internal/modules/esm/resolve:*:*) + at Loader.defaultResolve [as _resolve] (node:internal/modules/esm/resolve:*:*) + at Loader.resolve (node:internal/modules/esm/loader:*:*) + at Loader.getModuleJob (node:internal/modules/esm/loader:*:*) + at ModuleWrap. (node:internal/modules/esm/module_job:*:*) + at link (node:internal/modules/esm/module_job:*:*) { code: 'ERR_MODULE_NOT_FOUND' } diff --git a/test/message/esm_loader_not_found_cjs_hint_relative.out b/test/message/esm_loader_not_found_cjs_hint_relative.out index edfe27a1f3b461..89b8d56133ce3a 100644 --- a/test/message/esm_loader_not_found_cjs_hint_relative.out +++ b/test/message/esm_loader_not_found_cjs_hint_relative.out @@ -1,20 +1,20 @@ (node:*) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time (Use `* --trace-warnings ...` to show where the warning was created) -internal/process/esm_loader.js:* +node:internal/process/esm_loader:* internalBinding('errors').triggerUncaughtException( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '*test*common*fixtures' imported from * Did you mean to import ./test/common/fixtures.js? - at new NodeError (internal/errors.js:*:*) - at finalizeResolution (internal/modules/esm/resolve.js:*:*) - at moduleResolve (internal/modules/esm/resolve.js:*:*) - at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:*:*) - at Loader.resolve (internal/modules/esm/loader.js:*:*) - at Loader.getModuleJob (internal/modules/esm/loader.js:*:*) - at Loader.import (internal/modules/esm/loader.js:*:*) - at internal/process/esm_loader.js:*:* - at initializeLoader (internal/process/esm_loader.js:*:*) - at Object.loadESM (internal/process/esm_loader.js:*:*) { + at new NodeError (node:internal/errors:*:*) + at finalizeResolution (node:internal/modules/esm/resolve:*:*) + at moduleResolve (node:internal/modules/esm/resolve:*:*) + at Loader.defaultResolve [as _resolve] (node:internal/modules/esm/resolve:*:*) + at Loader.resolve (node:internal/modules/esm/loader:*:*) + at Loader.getModuleJob (node:internal/modules/esm/loader:*:*) + at Loader.import (node:internal/modules/esm/loader:*:*) + at node:internal/process/esm_loader:*:* + at initializeLoader (node:internal/process/esm_loader:*:*) + at Object.loadESM (node:internal/process/esm_loader:*:*) { code: 'ERR_MODULE_NOT_FOUND' } diff --git a/test/message/esm_loader_syntax_error.out b/test/message/esm_loader_syntax_error.out index d6c6df0a338c84..de6014add667bc 100644 --- a/test/message/esm_loader_syntax_error.out +++ b/test/message/esm_loader_syntax_error.out @@ -5,5 +5,5 @@ await async () => 0; ^^^^^^^^^^^^^ SyntaxError: Malformed arrow function parameter list - at Loader.moduleStrategy (internal/modules/esm/translators.js:*:*) - at async link (internal/modules/esm/module_job.js:*:*) + at Loader.moduleStrategy (node:internal/modules/esm/translators:*:*) + at async link (node:internal/modules/esm/module_job:*:*) diff --git a/test/message/eval_messages.out b/test/message/eval_messages.out index 4ba0d35974fc21..55efb8793104ba 100644 --- a/test/message/eval_messages.out +++ b/test/message/eval_messages.out @@ -3,13 +3,13 @@ with(this){__filename} ^^^^ SyntaxError: Strict mode code may not include a with statement - at new Script (vm.js:*:*) - at createScript (vm.js:*:*) - at Object.runInThisContext (vm.js:*:*) - at internal/process/execution.js:*:* + at new Script (node:vm:*:*) + at createScript (node:vm:*:*) + at Object.runInThisContext (node:vm:*:*) + at node:internal/process/execution:*:* at [eval]-wrapper:*:* - at evalScript (internal/process/execution.js:*:*) - at internal/main/eval_string.js:*:* + at evalScript (node:internal/process/execution:*:*) + at node:internal/main/eval_string:*:* 42 42 [eval]:1 @@ -18,12 +18,12 @@ throw new Error("hello") Error: hello at [eval]:1:7 - at Script.runInThisContext (vm.js:*:*) - at Object.runInThisContext (vm.js:*:*) - at internal/process/execution.js:*:* + at Script.runInThisContext (node:vm:*:*) + at Object.runInThisContext (node:vm:*:*) + at node:internal/process/execution:*:* at [eval]-wrapper:*:* - at evalScript (internal/process/execution.js:*:*) - at internal/main/eval_string.js:*:* + at evalScript (node:internal/process/execution:*:*) + at node:internal/main/eval_string:*:* [eval]:1 throw new Error("hello") @@ -31,12 +31,12 @@ throw new Error("hello") Error: hello at [eval]:1:7 - at Script.runInThisContext (vm.js:*:*) - at Object.runInThisContext (vm.js:*:*) - at internal/process/execution.js:*:* + at Script.runInThisContext (node:vm:*:*) + at Object.runInThisContext (node:vm:*:*) + at node:internal/process/execution:*:* at [eval]-wrapper:*:* - at evalScript (internal/process/execution.js:*:*) - at internal/main/eval_string.js:*:* + at evalScript (node:internal/process/execution:*:*) + at node:internal/main/eval_string:*:* 100 [eval]:1 var x = 100; y = x; @@ -44,12 +44,12 @@ var x = 100; y = x; ReferenceError: y is not defined at [eval]:1:16 - at Script.runInThisContext (vm.js:*:*) - at Object.runInThisContext (vm.js:*:*) - at internal/process/execution.js:*:* + at Script.runInThisContext (node:vm:*:*) + at Object.runInThisContext (node:vm:*:*) + at node:internal/process/execution:*:* at [eval]-wrapper:*:* - at evalScript (internal/process/execution.js:*:*) - at internal/main/eval_string.js:*:* + at evalScript (node:internal/process/execution:*:*) + at node:internal/main/eval_string:*:* [eval]:1 var ______________________________________________; throw 10 diff --git a/test/message/events_unhandled_error_common_trace.out b/test/message/events_unhandled_error_common_trace.out index 72dbe47629b94c..19e89869ba74fa 100644 --- a/test/message/events_unhandled_error_common_trace.out +++ b/test/message/events_unhandled_error_common_trace.out @@ -1,4 +1,4 @@ -events.js:* +node:events:* throw er; // Unhandled 'error' event ^ @@ -6,15 +6,15 @@ Error: foo:bar at bar (*events_unhandled_error_common_trace.js:*:*) at foo (*events_unhandled_error_common_trace.js:*:*) at Object. (*events_unhandled_error_common_trace.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 Function.Module._load (internal/modules/cjs/loader.js:*:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*) + at Module.load (node:internal/modules/cjs/loader:*:*) + at Function.Module._load (node:internal/modules/cjs/loader:*:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*) + at node:internal/main/run_main_module:*:* Emitted 'error' event at: at quux (*events_unhandled_error_common_trace.js:*:*) at Object. (*events_unhandled_error_common_trace.js:*:*) - at Module._compile (internal/modules/cjs/loader.js:*:*) + at Module._compile (node:internal/modules/cjs/loader:*:*) [... lines matching original stack trace ...] - at internal/main/run_main_module.js:*:* + at node:internal/main/run_main_module:*:* diff --git a/test/message/events_unhandled_error_nexttick.out b/test/message/events_unhandled_error_nexttick.out index 75eb666222f899..3e0d4697504e49 100644 --- a/test/message/events_unhandled_error_nexttick.out +++ b/test/message/events_unhandled_error_nexttick.out @@ -1,15 +1,15 @@ -events.js:* +node:events:* throw er; // Unhandled 'error' event ^ Error at Object. (*events_unhandled_error_nexttick.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 Function.Module._load (internal/modules/cjs/loader.js:*:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*) + at Module.load (node:internal/modules/cjs/loader:*:*) + at Function.Module._load (node:internal/modules/cjs/loader:*:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*) + at node:internal/main/run_main_module:*:* Emitted 'error' event at: at *events_unhandled_error_nexttick.js:*:* - at processTicksAndRejections (internal/process/task_queues.js:*:*) + at processTicksAndRejections (node:internal/process/task_queues:*:*) diff --git a/test/message/events_unhandled_error_sameline.out b/test/message/events_unhandled_error_sameline.out index 241412d5a83220..c027275033941d 100644 --- a/test/message/events_unhandled_error_sameline.out +++ b/test/message/events_unhandled_error_sameline.out @@ -1,17 +1,17 @@ -events.js:* +node:events:* throw er; // Unhandled 'error' event ^ Error at Object. (*events_unhandled_error_sameline.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 Function.Module._load (internal/modules/cjs/loader.js:*:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*) + at Module.load (node:internal/modules/cjs/loader:*:*) + at Function.Module._load (node:internal/modules/cjs/loader:*:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*) + at node:internal/main/run_main_module:*:* Emitted 'error' event at: at Object. (*events_unhandled_error_sameline.js:*:*) - at Module._compile (internal/modules/cjs/loader.js:*:*) + at Module._compile (node:internal/modules/cjs/loader:*:*) [... lines matching original stack trace ...] - at internal/main/run_main_module.js:*:* + at node:internal/main/run_main_module:*:* diff --git a/test/message/events_unhandled_error_subclass.out b/test/message/events_unhandled_error_subclass.out index 859bd4980eb9b4..5b8131970d50d5 100644 --- a/test/message/events_unhandled_error_subclass.out +++ b/test/message/events_unhandled_error_subclass.out @@ -1,17 +1,17 @@ -events.js:* +node:events:* throw er; // Unhandled 'error' event ^ Error at Object. (*events_unhandled_error_subclass.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 Function.Module._load (internal/modules/cjs/loader.js:*:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*) + at Module.load (node:internal/modules/cjs/loader:*:*) + at Function.Module._load (node:internal/modules/cjs/loader:*:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*) + at node:internal/main/run_main_module:*:* Emitted 'error' event on Foo instance at: at Object. (*events_unhandled_error_subclass.js:*:*) - at Module._compile (internal/modules/cjs/loader.js:*:*) + at Module._compile (node:internal/modules/cjs/loader:*:*) [... lines matching original stack trace ...] - at internal/main/run_main_module.js:*:* + at node:internal/main/run_main_module:*:* diff --git a/test/message/if-error-has-good-stack.out b/test/message/if-error-has-good-stack.out index 24a8f7beb4daaf..d87581cd767534 100644 --- a/test/message/if-error-has-good-stack.out +++ b/test/message/if-error-has-good-stack.out @@ -1,4 +1,4 @@ -assert.js:* +node:assert:* throw newErr; ^ @@ -11,12 +11,12 @@ 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. (*if-error-has-good-stack.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 Function.Module._load (internal/modules/cjs/loader.js:*:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*:*) - at internal/main/run_main_module.js:*:* { + at Module._compile (node:internal/modules/cjs/loader:*:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*) + at Module.load (node:internal/modules/cjs/loader:*:*) + at Function.Module._load (node:internal/modules/cjs/loader:*:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*) + at node:internal/main/run_main_module:*:* { generatedMessage: false, code: 'ERR_ASSERTION', actual: Error: test error @@ -24,12 +24,12 @@ 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. (*if-error-has-good-stack.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 Function.Module._load (internal/modules/cjs/loader.js:*:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*) + at Module.load (node:internal/modules/cjs/loader:*:*) + at Function.Module._load (node:internal/modules/cjs/loader:*:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*) + at node:internal/main/run_main_module:*:* expected: null, operator: 'ifError' } diff --git a/test/message/internal_assert.out b/test/message/internal_assert.out index 9ca8350756c9ad..131eb6584853cf 100644 --- a/test/message/internal_assert.out +++ b/test/message/internal_assert.out @@ -1,12 +1,12 @@ -internal/assert.js:* +node:internal/assert:* throw new ERR_INTERNAL_ASSERTION(message); ^ Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals. Please open an issue with this stack trace at https://github.com/nodejs/node/issues - at new NodeError (internal/errors.js:*:*) - at assert (internal/assert.js:*:*) + at new NodeError (node:internal/errors:*:*) + at assert (node:internal/assert:*:*) at * (*test*message*internal_assert.js:7:1) at * at * diff --git a/test/message/internal_assert_fail.out b/test/message/internal_assert_fail.out index 11e253703170d2..f3e2446ab14547 100644 --- a/test/message/internal_assert_fail.out +++ b/test/message/internal_assert_fail.out @@ -1,4 +1,4 @@ -internal/assert.js:* +node:internal/assert:* throw new ERR_INTERNAL_ASSERTION(message); ^ @@ -6,8 +6,8 @@ Error [ERR_INTERNAL_ASSERTION]: Unreachable! This is caused by either a bug in Node.js or incorrect usage of Node.js internals. Please open an issue with this stack trace at https://github.com/nodejs/node/issues - at new NodeError (internal/errors.js:*:*) - at Function.fail (internal/assert.js:*:*) + at new NodeError (node:internal/errors:*:*) + at Function.fail (node:internal/assert:*:*) at * (*test*message*internal_assert_fail.js:7:8) at * at * diff --git a/test/message/nexttick_throw.out b/test/message/nexttick_throw.out index d0a45b3cec0f2b..955bcda6a26da0 100644 --- a/test/message/nexttick_throw.out +++ b/test/message/nexttick_throw.out @@ -4,4 +4,4 @@ ^ ReferenceError: undefined_reference_error_maker is not defined at *test*message*nexttick_throw.js:*:* - at processTicksAndRejections (internal/process/task_queues.js:*:*) + at processTicksAndRejections (node:internal/process/task_queues:*:*) diff --git a/test/message/source_map_reference_error_tabs.out b/test/message/source_map_reference_error_tabs.out index b02370ad34b6d3..24ef2ee21b7182 100644 --- a/test/message/source_map_reference_error_tabs.out +++ b/test/message/source_map_reference_error_tabs.out @@ -7,11 +7,11 @@ ReferenceError: alert is not defined -> *tabs.coffee:26:2 at Object. (*tabs.coffee:53:4) -> *tabs.coffee:1:14 - 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 Function.Module._load (internal/modules/cjs/loader.js:* - at Module.require (internal/modules/cjs/loader.js:* - at require (internal/modules/cjs/helpers.js:* + at Module._compile (node:internal/modules/cjs/loader:* + at Object.Module._extensions..js (node:internal/modules/cjs/loader:* + at Module.load (node:internal/modules/cjs/loader:* + at Function.Module._load (node:internal/modules/cjs/loader:* + at Module.require (node:internal/modules/cjs/loader:* + at require (node:internal/modules/cjs/helpers:* at Object. (*source_map_reference_error_tabs.js:* - at Module._compile (internal/modules/cjs/loader.js:* + at Module._compile (node:internal/modules/cjs/loader:* diff --git a/test/message/source_map_throw_catch.out b/test/message/source_map_throw_catch.out index a8e71a934f5e47..5bc180c5c593e5 100644 --- a/test/message/source_map_throw_catch.out +++ b/test/message/source_map_throw_catch.out @@ -7,11 +7,11 @@ Error: an exception -> *typescript-throw.ts:18:11 at Object. (*typescript-throw.js:26:1) -> *typescript-throw.ts:24:1 - 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 Function.Module._load (internal/modules/cjs/loader.js:*) - at Module.require (internal/modules/cjs/loader.js:*) - at require (internal/modules/cjs/helpers.js:*) + at Module._compile (node:internal/modules/cjs/loader:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*) + at Module.load (node:internal/modules/cjs/loader:*) + at Function.Module._load (node:internal/modules/cjs/loader:*) + at Module.require (node:internal/modules/cjs/loader:*) + at require (node:internal/modules/cjs/helpers:*) at Object. (*source_map_throw_catch.js:6:3) - at Module._compile (internal/modules/cjs/loader.js:*) + at Module._compile (node:internal/modules/cjs/loader:*) diff --git a/test/message/source_map_throw_first_tick.out b/test/message/source_map_throw_first_tick.out index 2532c38d6f722c..37666b74dc5b04 100644 --- a/test/message/source_map_throw_first_tick.out +++ b/test/message/source_map_throw_first_tick.out @@ -7,11 +7,11 @@ Error: an exception -> *typescript-throw.ts:18:11 at Object. (*typescript-throw.js:26:1) -> *typescript-throw.ts:24:1 - 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 Function.Module._load (internal/modules/cjs/loader.js:*) - at Module.require (internal/modules/cjs/loader.js:*) - at require (internal/modules/cjs/helpers.js:*) + at Module._compile (node:internal/modules/cjs/loader:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*) + at Module.load (node:internal/modules/cjs/loader:*) + at Function.Module._load (node:internal/modules/cjs/loader:*) + at Module.require (node:internal/modules/cjs/loader:*) + at require (node:internal/modules/cjs/helpers:*) at Object. (*source_map_throw_first_tick.js:5:1) - at Module._compile (internal/modules/cjs/loader.js:*) + at Module._compile (node:internal/modules/cjs/loader:*) diff --git a/test/message/source_map_throw_icu.out b/test/message/source_map_throw_icu.out index 25043d62c1a1ea..c080bb94402353 100644 --- a/test/message/source_map_throw_icu.out +++ b/test/message/source_map_throw_icu.out @@ -7,11 +7,11 @@ Error: an error -> *icu.jsx:3:23 at Object. (*icu.js:8:82) -> *icu.jsx:9:5 - 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 Function.Module._load (internal/modules/cjs/loader.js:* - at Module.require (internal/modules/cjs/loader.js:* - at require (internal/modules/cjs/helpers.js:* + at Module._compile (node:internal/modules/cjs/loader:* + at Object.Module._extensions..js (node:internal/modules/cjs/loader:* + at Module.load (node:internal/modules/cjs/loader:* + at Function.Module._load (node:internal/modules/cjs/loader:* + at Module.require (node:internal/modules/cjs/loader:* + at require (node:internal/modules/cjs/helpers:* at Object. (*source_map_throw_icu.js:* - at Module._compile (internal/modules/cjs/loader.js:* + at Module._compile (node:internal/modules/cjs/loader:* diff --git a/test/message/source_map_throw_set_immediate.out b/test/message/source_map_throw_set_immediate.out index 488d5381d5510b..d3a795757f5e24 100644 --- a/test/message/source_map_throw_set_immediate.out +++ b/test/message/source_map_throw_set_immediate.out @@ -7,4 +7,4 @@ Error: goodbye -> *uglify-throw-original.js:5:9 at Immediate. (*uglify-throw.js:1:60) -> *uglify-throw-original.js:9:3 - at processImmediate (internal/timers.js:*) + at processImmediate (node:internal/timers:*) diff --git a/test/message/stdin_messages.out b/test/message/stdin_messages.out index 0994aaef3e2ca2..3ce4ba0c5b6fe5 100644 --- a/test/message/stdin_messages.out +++ b/test/message/stdin_messages.out @@ -4,16 +4,16 @@ with(this){__filename} ^^^^ SyntaxError: Strict mode code may not include a with statement - at new Script (vm.js:*) - at createScript (vm.js:*) - at Object.runInThisContext (vm.js:*) - at internal/process/execution.js:*:* + at new Script (node:vm:*) + at createScript (node:vm:*) + at Object.runInThisContext (node:vm:*) + at node:internal/process/execution:*:* at [stdin]-wrapper:*:* - at evalScript (internal/process/execution.js:*:*) - at internal/main/eval_stdin.js:*:* - at Socket. (internal/process/execution.js:*:*) - at Socket.emit (events.js:*:*) - at endReadableNT (internal/streams/readable.js:*:*) + at evalScript (node:internal/process/execution:*:*) + at node:internal/main/eval_stdin:*:* + at Socket. (node:internal/process/execution:*:*) + at Socket.emit (node:events:*:*) + at endReadableNT (node:internal/streams/readable:*:*) 42 42 [stdin]:1 @@ -22,30 +22,30 @@ throw new Error("hello") Error: hello at [stdin]:1:7 - at Script.runInThisContext (vm.js:*) - at Object.runInThisContext (vm.js:*) - at internal/process/execution.js:*:* + at Script.runInThisContext (node:vm:*) + at Object.runInThisContext (node:vm:*) + at node:internal/process/execution:*:* at [stdin]-wrapper:*:* - at evalScript (internal/process/execution.js:*:*) - at internal/main/eval_stdin.js:*:* - at Socket. (internal/process/execution.js:*:*) - at Socket.emit (events.js:*:*) - at endReadableNT (internal/streams/readable.js:*:*) + at evalScript (node:internal/process/execution:*:*) + at node:internal/main/eval_stdin:*:* + at Socket. (node:internal/process/execution:*:*) + at Socket.emit (node:events:*:*) + at endReadableNT (node:internal/streams/readable:*:*) [stdin]:1 throw new Error("hello") ^ Error: hello at [stdin]:1:* - at Script.runInThisContext (vm.js:*) - at Object.runInThisContext (vm.js:*) - at internal/process/execution.js:*:* + at Script.runInThisContext (node:vm:*) + at Object.runInThisContext (node:vm:*) + at node:internal/process/execution:*:* at [stdin]-wrapper:*:* - at evalScript (internal/process/execution.js:*:*) - at internal/main/eval_stdin.js:*:* - at Socket. (internal/process/execution.js:*:*) - at Socket.emit (events.js:*:*) - at endReadableNT (internal/streams/readable.js:*:*) + at evalScript (node:internal/process/execution:*:*) + at node:internal/main/eval_stdin:*:* + at Socket. (node:internal/process/execution:*:*) + at Socket.emit (node:events:*:*) + at endReadableNT (node:internal/streams/readable:*:*) 100 [stdin]:1 let x = 100; y = x; @@ -53,15 +53,15 @@ let x = 100; y = x; ReferenceError: y is not defined at [stdin]:1:16 - at Script.runInThisContext (vm.js:*) - at Object.runInThisContext (vm.js:*) - at internal/process/execution.js:*:* + at Script.runInThisContext (node:vm:*) + at Object.runInThisContext (node:vm:*) + at node:internal/process/execution:*:* at [stdin]-wrapper:*:* - at evalScript (internal/process/execution.js:*:*) - at internal/main/eval_stdin.js:*:* - at Socket. (internal/process/execution.js:*:*) - at Socket.emit (events.js:*:*) - at endReadableNT (internal/streams/readable.js:*:*) + at evalScript (node:internal/process/execution:*:*) + at node:internal/main/eval_stdin:*:* + at Socket. (node:internal/process/execution:*:*) + at Socket.emit (node:events:*:*) + at endReadableNT (node:internal/streams/readable:*:*) [stdin]:1 let ______________________________________________; throw 10 diff --git a/test/message/throw_error_with_getter_throw_traced.out b/test/message/throw_error_with_getter_throw_traced.out index 9b8502d2bc9c4d..f5106b8c3fc00b 100644 --- a/test/message/throw_error_with_getter_throw_traced.out +++ b/test/message/throw_error_with_getter_throw_traced.out @@ -5,9 +5,9 @@ throw { // eslint-disable-line no-throw-literal [object Object] Thrown at: at *throw_error_with_getter_throw_traced.js:*:* - at Module._compile (internal/modules/cjs/loader.js:*:*) - at Module._extensions..js (internal/modules/cjs/loader.js:*:*) - at Module.load (internal/modules/cjs/loader.js:*:*) - at Module._load (internal/modules/cjs/loader.js:*:*) - at executeUserEntryPoint (internal/modules/run_main.js:*:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*:*) + at Module._extensions..js (node:internal/modules/cjs/loader:*:*) + at Module.load (node:internal/modules/cjs/loader:*:*) + at Module._load (node:internal/modules/cjs/loader:*:*) + at executeUserEntryPoint (node:internal/modules/run_main:*:*) + at node:internal/main/run_main_module:*:* diff --git a/test/message/throw_null_traced.out b/test/message/throw_null_traced.out index bf8d71d7ad7a4d..e1b471827f449a 100644 --- a/test/message/throw_null_traced.out +++ b/test/message/throw_null_traced.out @@ -5,9 +5,9 @@ throw null; null Thrown at: at *throw_null_traced.js:*:* - at Module._compile (internal/modules/cjs/loader.js:*:*) - at Module._extensions..js (internal/modules/cjs/loader.js:*:*) - at Module.load (internal/modules/cjs/loader.js:*:*) - at Module._load (internal/modules/cjs/loader.js:*:*) - at executeUserEntryPoint (internal/modules/run_main.js:*:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*:*) + at Module._extensions..js (node:internal/modules/cjs/loader:*:*) + at Module.load (node:internal/modules/cjs/loader:*:*) + at Module._load (node:internal/modules/cjs/loader:*:*) + at executeUserEntryPoint (node:internal/modules/run_main:*:*) + at node:internal/main/run_main_module:*:* diff --git a/test/message/throw_undefined_traced.out b/test/message/throw_undefined_traced.out index 22040aa9226139..fa89312ed4d9cf 100644 --- a/test/message/throw_undefined_traced.out +++ b/test/message/throw_undefined_traced.out @@ -5,9 +5,9 @@ throw undefined; undefined Thrown at: at *throw_undefined_traced.js:*:* - at Module._compile (internal/modules/cjs/loader.js:*:*) - at Module._extensions..js (internal/modules/cjs/loader.js:*:*) - at Module.load (internal/modules/cjs/loader.js:*:*) - at Module._load (internal/modules/cjs/loader.js:*:*) - at executeUserEntryPoint (internal/modules/run_main.js:*:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*:*) + at Module._extensions..js (node:internal/modules/cjs/loader:*:*) + at Module.load (node:internal/modules/cjs/loader:*:*) + at Module._load (node:internal/modules/cjs/loader:*:*) + at executeUserEntryPoint (node:internal/modules/run_main:*:*) + at node:internal/main/run_main_module:*:* diff --git a/test/message/timeout_throw.out b/test/message/timeout_throw.out index b27ad167710f9d..66e495eb84d0bd 100644 --- a/test/message/timeout_throw.out +++ b/test/message/timeout_throw.out @@ -3,5 +3,5 @@ ^ ReferenceError: undefined_reference_error_maker is not defined at Timeout._onTimeout (*test*message*timeout_throw.js:*:*) - at listOnTimeout (internal/timers.js:*:*) - at processTimers (internal/timers.js:*:*) + at listOnTimeout (node:internal/timers:*:*) + at processTimers (node:internal/timers:*:*) diff --git a/test/message/undefined_reference_in_new_context.out b/test/message/undefined_reference_in_new_context.out index 77ff35479b3a0d..61dee9f6d4fba3 100644 --- a/test/message/undefined_reference_in_new_context.out +++ b/test/message/undefined_reference_in_new_context.out @@ -5,12 +5,12 @@ foo.bar = 5; ReferenceError: foo is not defined at evalmachine.:1:1 - at Script.runInContext (vm.js:*) - at Script.runInNewContext (vm.js:*) - at Object.runInNewContext (vm.js:*) + at Script.runInContext (node:vm:*) + at Script.runInNewContext (node:vm:*) + at Object.runInNewContext (node:vm:*) at Object. (*test*message*undefined_reference_in_new_context.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 Function.Module._load (internal/modules/cjs/loader.js:*:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*:*) + at Module._compile (node:internal/modules/cjs/loader:*) + at *..js (node:internal/modules/cjs/loader:*) + at Module.load (node:internal/modules/cjs/loader:*) + at Function.Module._load (node:internal/modules/cjs/loader:*:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*) diff --git a/test/message/unhandled_promise_trace_warnings.out b/test/message/unhandled_promise_trace_warnings.out index 5100eecc7e55e7..a8717d0e13d1e4 100644 --- a/test/message/unhandled_promise_trace_warnings.out +++ b/test/message/unhandled_promise_trace_warnings.out @@ -18,8 +18,8 @@ at * at * (node:*) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) - at handledRejection (internal/process/promises.js:*) - at promiseRejectHandler (internal/process/promises.js:*) + at handledRejection (node:internal/process/promises:*) + at promiseRejectHandler (node:internal/process/promises:*) at Promise.then * at Promise.catch * at Immediate. (*test*message*unhandled_promise_trace_warnings.js:*) diff --git a/test/message/vm_display_runtime_error.out b/test/message/vm_display_runtime_error.out index e944f150ad28b6..8f1e9c37967f25 100644 --- a/test/message/vm_display_runtime_error.out +++ b/test/message/vm_display_runtime_error.out @@ -5,27 +5,27 @@ throw new Error("boo!") Error: boo! at test.vm:1:7 - at Script.runInThisContext (vm.js:*) - at Object.runInThisContext (vm.js:*) + at Script.runInThisContext (node:vm:*) + at Object.runInThisContext (node:vm:*) at Object. (*test*message*vm_display_runtime_error.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 Function.Module._load (internal/modules/cjs/loader.js:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*) + at Module.load (node:internal/modules/cjs/loader:*) + at Function.Module._load (node:internal/modules/cjs/loader:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*) + at node:internal/main/run_main_module:*:* test.vm:1 throw new Error("spooky!") ^ Error: spooky! at test.vm:1:7 - at Script.runInThisContext (vm.js:*) - at Object.runInThisContext (vm.js:*) + at Script.runInThisContext (node:vm:*) + at Object.runInThisContext (node:vm:*) at Object. (*test*message*vm_display_runtime_error.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 Function.Module._load (internal/modules/cjs/loader.js:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*) + at Module.load (node:internal/modules/cjs/loader:*) + at Function.Module._load (node:internal/modules/cjs/loader:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*) + at node:internal/main/run_main_module:*:* diff --git a/test/message/vm_display_syntax_error.out b/test/message/vm_display_syntax_error.out index efffe9eb4bc9bc..b0b70fcd759668 100644 --- a/test/message/vm_display_syntax_error.out +++ b/test/message/vm_display_syntax_error.out @@ -3,27 +3,27 @@ foo.vm:1 var 4; ^ SyntaxError: Unexpected number - at new Script (vm.js:*) - at createScript (vm.js:*) - at Object.runInThisContext (vm.js:*) + at new Script (node:vm:*) + at createScript (node:vm:*) + at Object.runInThisContext (node:vm:*) at Object. (*test*message*vm_display_syntax_error.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 Function.Module._load (internal/modules/cjs/loader.js:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*) + at Module.load (node:internal/modules/cjs/loader:*) + at Function.Module._load (node:internal/modules/cjs/loader:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*) + at node:internal/main/run_main_module:*:* test.vm:1 var 5; ^ SyntaxError: Unexpected number - at new Script (vm.js:*) - at createScript (vm.js:*) - at Object.runInThisContext (vm.js:*) + at new Script (node:vm:*) + at createScript (node:vm:*) + at Object.runInThisContext (node:vm:*) at Object. (*test*message*vm_display_syntax_error.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 Function.Module._load (internal/modules/cjs/loader.js:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*) + at Module.load (node:internal/modules/cjs/loader:*) + at Function.Module._load (node:internal/modules/cjs/loader:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*) + at node:internal/main/run_main_module:*:* diff --git a/test/message/vm_dont_display_runtime_error.out b/test/message/vm_dont_display_runtime_error.out index 1561d13c82ac29..2ff2e8355ab90c 100644 --- a/test/message/vm_dont_display_runtime_error.out +++ b/test/message/vm_dont_display_runtime_error.out @@ -6,12 +6,12 @@ throw new Error("boo!") Error: boo! at test.vm:1:7 - at Script.runInThisContext (vm.js:*) - at Object.runInThisContext (vm.js:*) + at Script.runInThisContext (node:vm:*) + at Object.runInThisContext (node:vm:*) at Object. (*test*message*vm_dont_display_runtime_error.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 Function.Module._load (internal/modules/cjs/loader.js:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*) + at Module.load (node:internal/modules/cjs/loader:*) + at Function.Module._load (node:internal/modules/cjs/loader:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*) + at node:internal/main/run_main_module:*:* diff --git a/test/message/vm_dont_display_syntax_error.out b/test/message/vm_dont_display_syntax_error.out index 5048ad69f5dedb..d46dce2993f863 100644 --- a/test/message/vm_dont_display_syntax_error.out +++ b/test/message/vm_dont_display_syntax_error.out @@ -5,13 +5,13 @@ var 5; ^ SyntaxError: Unexpected number - at new Script (vm.js:*) - at createScript (vm.js:*) - at Object.runInThisContext (vm.js:*) + at new Script (node:vm:*) + at createScript (node:vm:*) + at Object.runInThisContext (node:vm:*) at Object. (*test*message*vm_dont_display_syntax_error.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 Function.Module._load (internal/modules/cjs/loader.js:*) - at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:*) - at internal/main/run_main_module.js:*:* + at Module._compile (node:internal/modules/cjs/loader:*) + at Object.Module._extensions..js (node:internal/modules/cjs/loader:*) + at Module.load (node:internal/modules/cjs/loader:*) + at Function.Module._load (node:internal/modules/cjs/loader:*) + at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*) + at node:internal/main/run_main_module:*:* diff --git a/test/parallel/test-inspector-inspect-brk-node.js b/test/parallel/test-inspector-inspect-brk-node.js index caf17b956dcd19..0f4795ed7b87e4 100644 --- a/test/parallel/test-inspector-inspect-brk-node.js +++ b/test/parallel/test-inspector-inspect-brk-node.js @@ -16,7 +16,7 @@ async function runTest() { await session.waitForNotification((notification) => { // The main assertion here is that we do hit the loader script first. return notification.method === 'Debugger.scriptParsed' && - notification.params.url === 'internal/bootstrap/loaders.js'; + notification.params.url === 'node:internal/bootstrap/loaders'; }); await session.waitForNotification('Debugger.paused'); diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js index 3b0fc186160f24..70f2ff64328b64 100644 --- a/test/parallel/test-util-inspect.js +++ b/test/parallel/test-util-inspect.js @@ -2716,16 +2716,16 @@ assert.strictEqual( const stack = [ 'TypedError: Wonderful message!', ' at A. (/test/node_modules/foo/node_modules/bar/baz.js:2:7)', - ' at Module._compile (internal/modules/cjs/loader.js:827:30)', - ' at Fancy (vm.js:697:32)', + ' at Module._compile (node:internal/modules/cjs/loader:827:30)', + ' at Fancy (node:vm:697:32)', // This file is not an actual Node.js core file. - ' at tryModuleLoad (internal/modules/cjs/foo.js:629:12)', - ' at Function.Module._load (internal/modules/cjs/loader.js:621:3)', + ' at tryModuleLoad (node:internal/modules/cjs/foo:629:12)', + ' at Function.Module._load (node:internal/modules/cjs/loader:621:3)', // This file is not an actual Node.js core file. - ' at Module.require [as weird/name] (internal/aaaaaa/loader.js:735:19)', - ' at require (internal/modules/cjs/helpers.js:14:16)', + ' at Module.require [as weird/name] (node:internal/aaaaa/loader:735:19)', + ' at require (node:internal/modules/cjs/helpers:14:16)', ' at /test/test-util-inspect.js:2239:9', - ' at getActual (assert.js:592:5)' + ' at getActual (node:assert:592:5)' ]; const isNodeCoreFile = [ false, false, true, true, false, true, false, true, false, true diff --git a/test/pseudo-tty/console_colors.out b/test/pseudo-tty/console_colors.out index 76f277ecf5bbda..8766302ffd7e51 100644 --- a/test/pseudo-tty/console_colors.out +++ b/test/pseudo-tty/console_colors.out @@ -6,7 +6,7 @@ Error: test at abc (../fixtures/node_modules/bar.js:4:4) foobar at * (*console_colors.js:*:*) -*[90m at * (internal*:*:*)*[39m +*[90m at * (node:internal*:*:*)*[39m *[90m at *[39m *[90m at *[39m *[90m at *[39m @@ -27,8 +27,8 @@ Error: Should not ever get here. Error at evalmachine.:*:* -*[90m at Script.runInThisContext (vm.js:*:*)*[39m -*[90m at Object.runInThisContext (vm.js:*:*)*[39m +*[90m at Script.runInThisContext (node:vm:*:*)*[39m +*[90m at Object.runInThisContext (node:vm:*:*)*[39m at * (*console_colors.js:*:*) *[90m at *[39m *[90m at *[39m diff --git a/test/pseudo-tty/test-fatal-error.out b/test/pseudo-tty/test-fatal-error.out index 6114d7d9b00535..b6eeca17f55246 100644 --- a/test/pseudo-tty/test-fatal-error.out +++ b/test/pseudo-tty/test-fatal-error.out @@ -4,10 +4,10 @@ throw err; TypeError: foobar at Object. (*test-fatal-error.js:*) -*[90m at *(internal*loader.js:*:*)*[39m -*[90m at *(internal*loader.js:*:*)*[39m -*[90m at *(internal*loader.js:*:*)*[39m -*[90m at *(internal*loader.js:*:*)*[39m +*[90m at *(node:internal*loader:*:*)*[39m +*[90m at *(node:internal*loader:*:*)*[39m +*[90m at *(node:internal*loader:*:*)*[39m +*[90m at *(node:internal*loader:*:*)*[39m *[90m at *[39m *[90m at *[39m { bla: *[33mtrue*[39m diff --git a/test/sequential/test-inspector-async-hook-setup-at-inspect-brk.js b/test/sequential/test-inspector-async-hook-setup-at-inspect-brk.js index 053108c415980f..b1701b5de79d9f 100644 --- a/test/sequential/test-inspector-async-hook-setup-at-inspect-brk.js +++ b/test/sequential/test-inspector-async-hook-setup-at-inspect-brk.js @@ -24,7 +24,7 @@ async function checkAsyncStackTrace(session) { `${Object.keys(paused.params)} contains "asyncStackTrace" property`); assert(paused.params.asyncStackTrace.description, 'Timeout'); assert(paused.params.asyncStackTrace.callFrames - .some((frame) => frame.url === 'internal/process/execution.js')); + .some((frame) => frame.url === 'node:internal/process/execution')); } async function runTests() { diff --git a/test/sequential/test-inspector-async-stack-traces-set-interval.js b/test/sequential/test-inspector-async-stack-traces-set-interval.js index 8f884614cc7d95..d2174cf9ed84fc 100644 --- a/test/sequential/test-inspector-async-stack-traces-set-interval.js +++ b/test/sequential/test-inspector-async-stack-traces-set-interval.js @@ -20,7 +20,7 @@ async function checkAsyncStackTrace(session) { `${Object.keys(paused.params)} contains "asyncStackTrace" property`); assert(paused.params.asyncStackTrace.description, 'Timeout'); assert(paused.params.asyncStackTrace.callFrames - .some((frame) => frame.url === 'internal/process/execution.js')); + .some((frame) => frame.url === 'node:internal/process/execution')); } async function runTests() {