aboutsummaryrefslogtreecommitdiff
path: root/test/message/assert_throws_stack.out
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-02-06 11:08:23 +0100
committerAnatoli Papirovski <apapirovski@mac.com>2018-02-09 08:45:51 -0500
commitcccddc59e5058008464b359cb1fdceb98597a55a (patch)
tree7c9fd08181746744101d0b102e26f8e73c173362 /test/message/assert_throws_stack.out
parent14bc3e22f3b2c34616091183fd431f39af6c2b65 (diff)
downloadandroid-node-v8-cccddc59e5058008464b359cb1fdceb98597a55a.tar.gz
android-node-v8-cccddc59e5058008464b359cb1fdceb98597a55a.tar.bz2
android-node-v8-cccddc59e5058008464b359cb1fdceb98597a55a.zip
assert: fix throws trace
The current stack trace thrown in case `assert.throws(fn, object)` is used did not filter the stack trace. This fixes it. PR-URL: https://github.com/nodejs/node/pull/18595 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Diffstat (limited to 'test/message/assert_throws_stack.out')
-rw-r--r--test/message/assert_throws_stack.out14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/message/assert_throws_stack.out b/test/message/assert_throws_stack.out
new file mode 100644
index 0000000000..d34bdd2479
--- /dev/null
+++ b/test/message/assert_throws_stack.out
@@ -0,0 +1,14 @@
+assert.js:*
+ throw new AssertionError(obj);
+ ^
+
+AssertionError [ERR_ASSERTION]: bar: expected true, not undefined
+ at Object.<anonymous> (*assert_throws_stack.js:*:*)
+ at *
+ at *
+ at *
+ at *
+ at *
+ at *
+ at *
+ at *