forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: use node:moduleName as builtin module filename
This change allows for easier recognition of builtin modules in stack traces. Refs: nodejs#11893 PR-URL: nodejs#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>
- Loading branch information
Showing
47 changed files
with
306 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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:*:* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
events.js:* | ||
node:events:* | ||
throw er; // Unhandled 'error' event | ||
^ | ||
|
||
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:*:* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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:*:*) |
Oops, something went wrong.