mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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>
36 lines
1.6 KiB
Plaintext
36 lines
1.6 KiB
Plaintext
node:assert:*
|
|
throw newErr;
|
|
^
|
|
|
|
AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error
|
|
at z (*if-error-has-good-stack.js:*:*
|
|
at y (*if-error-has-good-stack.js:*:*)
|
|
at x (*if-error-has-good-stack.js:*:*)
|
|
at Object.<anonymous> (*if-error-has-good-stack.js:*:*)
|
|
at c (*if-error-has-good-stack.js:*:*)
|
|
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 (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
|
|
at c (*if-error-has-good-stack.js:*:*)
|
|
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 (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'
|
|
}
|