diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-04-15 20:10:17 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-05-16 12:50:05 +0200 |
commit | a9f518c901459e42afc76871dab9867967e9fa23 (patch) | |
tree | 039da3b7206947dec05cdf4fbe6ccdf809c98db3 /test/message/assert_throws_stack.out | |
parent | ac2f2cd919ec549f908d3eb0b7fc8a6726a0ac25 (diff) | |
download | android-node-v8-a9f518c901459e42afc76871dab9867967e9fa23.tar.gz android-node-v8-a9f518c901459e42afc76871dab9867967e9fa23.tar.bz2 android-node-v8-a9f518c901459e42afc76871dab9867967e9fa23.zip |
process: inspect error in case of a fatal exception
This makes sure that errors that shut down the application are
inspected with `util.inspect()`. That makes sure that all extra
properties on the error will be visible and also that the stack trace
is highlighted (Node.js internal frames will be grey and node modules
are underlined).
PR-URL: https://github.com/nodejs/node/pull/27243
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/message/assert_throws_stack.out')
-rw-r--r-- | test/message/assert_throws_stack.out | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/message/assert_throws_stack.out b/test/message/assert_throws_stack.out index 7d4a7aecbc..e9f9cc5e89 100644 --- a/test/message/assert_throws_stack.out +++ b/test/message/assert_throws_stack.out @@ -15,4 +15,20 @@ AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: at * at * at * - at * + at * { + generatedMessage: true, + code: 'ERR_ASSERTION', + actual: Error: foo + at assert.throws.bar (*assert_throws_stack.js:*) + at getActual (assert.js:*) + at Function.throws (assert.js:*) + at Object.<anonymous> (*assert_throws_stack.js:*:*) + at * + at * + at * + at * + at * + at *, + expected: [Object], + operator: 'throws' +} |