mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
There are some changes for function names in stack traces. PR-URL: https://github.com/nodejs/node/pull/42657 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
33 lines
1.7 KiB
Plaintext
33 lines
1.7 KiB
Plaintext
*enclosing-call-site.js:16
|
|
throw new Error('an error!')
|
|
^
|
|
|
|
Error: an error!
|
|
at functionD (*enclosing-call-site.js:16:17)
|
|
at functionC (*enclosing-call-site.js:10:3)
|
|
at functionB (*enclosing-call-site.js:6:3)
|
|
at functionA (*enclosing-call-site.js:2:3)
|
|
at Object.<anonymous> (*enclosing-call-site.js:24:3)
|
|
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 Module.require (node:internal/modules/cjs/loader:*)
|
|
*enclosing-call-site-min.js:1
|
|
var functionA=function(){functionB()};function functionB(){functionC()}var functionC=function(){functionD()},functionD=function(){if(0<Math.random())throw Error("an error!");},thrower=functionA;try{functionA()}catch(a){throw a;};
|
|
^
|
|
|
|
Error: an error!
|
|
at functionD (*enclosing-call-site-min.js:1:156)
|
|
at functionC (*enclosing-call-site-min.js:1:97)
|
|
at functionB (*enclosing-call-site-min.js:1:60)
|
|
at functionA (*enclosing-call-site-min.js:1:26)
|
|
at Object.<anonymous> (*enclosing-call-site-min.js:1:199)
|
|
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 Module.require (node:internal/modules/cjs/loader:*)
|
|
|
|
Node.js *
|