Display Node.js version at the end of stacktraces on fatal exception that causes exit. Easier for debugging so you don't have to ask "what node version are you on?", it is directly in the error the user copy/paste from when asking for help. Fixes: https://github.com/nodejs/node/issues/29731 PR-URL: https://github.com/nodejs/node/pull/38332 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michaël Zasso <targos@protonmail.com>
36 lines
686 B
Text
36 lines
686 B
Text
node:assert:*
|
|
throw err;
|
|
^
|
|
|
|
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
|
|
+ actual - expected
|
|
|
|
+ Comparison {}
|
|
- Comparison {
|
|
- bar: true
|
|
- }
|
|
at Object.<anonymous> (*assert_throws_stack.js:*:*)
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at * {
|
|
generatedMessage: true,
|
|
code: 'ERR_ASSERTION',
|
|
actual: Error: foo
|
|
at assert.throws.bar (*assert_throws_stack.js:*)
|
|
at getActual (node:assert:*)
|
|
at Function.throws (node:assert:*)
|
|
at Object.<anonymous> (*assert_throws_stack.js:*:*)
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *,
|
|
expected: { bar: true },
|
|
operator: 'throws'
|
|
}
|
|
|
|
Node.js *
|