assert: add compatibility for older Node.js versions · nodejs/node@6983a0c · GitHub
Skip to content

Commit 6983a0c

Browse files
BridgeARtargos
authored andcommitted
assert: add compatibility for older Node.js versions
This makes sure the `AssertionError` still accepts the `stackStartFunction` option as alternative to the `stackStartFn`. PR-URL: #27672 Fixes: #27671 Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 0393045 commit 6983a0c

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

lib/internal/assert/assertion_error.js

Lines changed: 4 additions & 2 deletions

test/parallel/test-assert.js

Lines changed: 18 additions & 0 deletions

0 commit comments

Comments
 (0)