mirror of
https://github.com/nodejs/node.git
synced 2025-05-13 10:54:13 +00:00

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>
15 lines
244 B
Plaintext
15 lines
244 B
Plaintext
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 *
|