mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08:00
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 <joyeec9h3@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com>
This commit is contained in:
47 files changed
+306
-304
No files matched your search
+4
-2
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 (?:[^/\\(]+ \(|)((?<![/\\]).+)\.js:\d+:\d+\)?$/;
|
||||
const coreModuleRegExp = /^ at (?:[^/\\(]+ \(|)node:(.+):\d+:\d+\)?$/;
|
||||
const nodeModulesRegExp = /[/\\]node_modules[/\\](.+?)(?=[/\\])/g;
|
||||
|
||||
const classRegExp = /^(\s+[^(]*?)\s*{/;
|
||||
|
||||
@@ -260,7 +260,7 @@ MaybeLocal<Function> NativeModuleLoader::LookupAndCompile(
|
||||
return {};
|
||||
}
|
||||
|
||||
std::string filename_s = id + std::string(".js");
|
||||
std::string filename_s = std::string("node:") + id;
|
||||
Local<String> filename =
|
||||
OneByteString(isolate, filename_s.c_str(), filename_s.size());
|
||||
Local<Integer> line_offset = Integer::New(isolate, 0);
|
||||
|
||||
@@ -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.<anonymous> (*assert_throws_stack.js:*:*)
|
||||
at *
|
||||
at *
|
||||
|
||||
@@ -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)
|
||||
@@ -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.<anonymous> (*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:*:*
|
||||
@@ -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.<anonymous> (*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,
|
||||
|
||||
Binary file not shown.
@@ -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:*:*)
|
||||
@@ -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:*:*)
|
||||
@@ -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:*:*)
|
||||
@@ -3,4 +3,4 @@ await async () => 0;
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
SyntaxError: Malformed arrow function parameter list
|
||||
at Loader.moduleStrategy (internal/modules/esm/translators.js:*:*)
|
||||
at Loader.moduleStrategy (node:internal/modules/esm/translators:*:*)
|
||||
@@ -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'
|
||||
}
|
||||
@@ -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.<anonymous> (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.<anonymous> (node:internal/modules/esm/module_job:*:*)
|
||||
at link (node:internal/modules/esm/module_job:*:*) {
|
||||
code: 'ERR_MODULE_NOT_FOUND'
|
||||
}
|
||||
@@ -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'
|
||||
}
|
||||
@@ -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:*:*)
|
||||
@@ -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
|
||||
|
||||
@@ -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.<anonymous> (*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.<anonymous> (*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:*:*
|
||||
@@ -1,15 +1,15 @@
|
||||
events.js:*
|
||||
node:events:*
|
||||
throw er; // Unhandled 'error' event
|
||||
^
|
||||
|
||||
Error
|
||||
at Object.<anonymous> (*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:*:*)
|
||||
@@ -1,17 +1,17 @@
|
||||
events.js:*
|
||||
node:events:*
|
||||
throw er; // Unhandled 'error' event
|
||||
^
|
||||
|
||||
Error
|
||||
at Object.<anonymous> (*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.<anonymous> (*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:*:*
|
||||
@@ -1,17 +1,17 @@
|
||||
events.js:*
|
||||
node:events:*
|
||||
throw er; // Unhandled 'error' event
|
||||
^
|
||||
|
||||
Error
|
||||
at Object.<anonymous> (*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.<anonymous> (*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:*:*
|
||||
@@ -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.<anonymous> (*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.<anonymous> (*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'
|
||||
}
|
||||
@@ -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 *
|
||||
|
||||
@@ -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 *
|
||||
|
||||
@@ -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:*:*)
|
||||
@@ -7,11 +7,11 @@ ReferenceError: alert is not defined
|
||||
-> *tabs.coffee:26:2
|
||||
at Object.<anonymous> (*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.<anonymous> (*source_map_reference_error_tabs.js:*
|
||||
at Module._compile (internal/modules/cjs/loader.js:*
|
||||
at Module._compile (node:internal/modules/cjs/loader:*
|
||||
@@ -7,11 +7,11 @@ Error: an exception
|
||||
-> *typescript-throw.ts:18:11
|
||||
at Object.<anonymous> (*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.<anonymous> (*source_map_throw_catch.js:6:3)
|
||||
at Module._compile (internal/modules/cjs/loader.js:*)
|
||||
at Module._compile (node:internal/modules/cjs/loader:*)
|
||||
@@ -7,11 +7,11 @@ Error: an exception
|
||||
-> *typescript-throw.ts:18:11
|
||||
at Object.<anonymous> (*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.<anonymous> (*source_map_throw_first_tick.js:5:1)
|
||||
at Module._compile (internal/modules/cjs/loader.js:*)
|
||||
at Module._compile (node:internal/modules/cjs/loader:*)
|
||||
@@ -7,11 +7,11 @@ Error: an error
|
||||
-> *icu.jsx:3:23
|
||||
at Object.<anonymous> (*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.<anonymous> (*source_map_throw_icu.js:*
|
||||
at Module._compile (internal/modules/cjs/loader.js:*
|
||||
at Module._compile (node:internal/modules/cjs/loader:*
|
||||
@@ -7,4 +7,4 @@ Error: goodbye
|
||||
-> *uglify-throw-original.js:5:9
|
||||
at Immediate.<anonymous> (*uglify-throw.js:1:60)
|
||||
-> *uglify-throw-original.js:9:3
|
||||
at processImmediate (internal/timers.js:*)
|
||||
at processImmediate (node:internal/timers:*)
|
||||
@@ -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.<anonymous> (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.<anonymous> (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.<anonymous> (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.<anonymous> (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.<anonymous> (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.<anonymous> (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.<anonymous> (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.<anonymous> (node:internal/process/execution:*:*)
|
||||
at Socket.emit (node:events:*:*)
|
||||
at endReadableNT (node:internal/streams/readable:*:*)
|
||||
|
||||
[stdin]:1
|
||||
let ______________________________________________; throw 10
|
||||
|
||||
@@ -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:*:*
|
||||
@@ -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:*:*
|
||||
@@ -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:*:*
|
||||
@@ -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:*:*)
|
||||
@@ -5,12 +5,12 @@ foo.bar = 5;
|
||||
|
||||
ReferenceError: foo is not defined
|
||||
at evalmachine.<anonymous>: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.<anonymous> (*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:*:*)
|
||||
@@ -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.<anonymous> (*test*message*unhandled_promise_trace_warnings.js:*)
|
||||
|
||||
@@ -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.<anonymous> (*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.<anonymous> (*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:*:*
|
||||
@@ -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.<anonymous> (*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.<anonymous> (*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:*:*
|
||||
@@ -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.<anonymous> (*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:*:*
|
||||
@@ -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.<anonymous> (*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:*:*
|
||||
@@ -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');
|
||||
|
||||
@@ -2716,16 +2716,16 @@ assert.strictEqual(
|
||||
const stack = [
|
||||
'TypedError: Wonderful message!',
|
||||
' at A.<anonymous> (/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
|
||||
|
||||
@@ -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.<anonymous>:*:*
|
||||
*[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
|
||||
|
||||
@@ -4,10 +4,10 @@ throw err;
|
||||
|
||||
TypeError: foobar
|
||||
at Object.<anonymous> (*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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user