assert: fix `assert.fail()` stack · nodejs/node@e573c99 · GitHub
Skip to content

Commit e573c99

Browse files
BridgeARtargos
authored andcommitted
assert: fix assert.fail() stack
This makes sure the error message visible in the error stack created when using `assert.fail()` without any arguments or the message set to `undefined` or `null` as only argument. That was masked before due to other changes. PR-URL: #27525 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 678b3be commit e573c99

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

lib/assert.js

Lines changed: 6 additions & 8 deletions

test/parallel/test-assert-fail.js

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)