assert: fix .throws operator · nodejs/node@84948cf · GitHub
Skip to content

Commit 84948cf

Browse files
BridgeARMylesBorins
authored andcommitted
assert: fix .throws operator
assert.throws and assert.doesNotThrow set the operator to a internal function. That was by accident and originally the operator was undefined. This changes it to show "throws" or "doesNotThrow". Backport-PR-URL: #23223 PR-URL: #17575 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
1 parent c6d94f8 commit 84948cf

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

lib/assert.js

Lines changed: 5 additions & 2 deletions

test/parallel/test-assert.js

Lines changed: 11 additions & 5 deletions

0 commit comments

Comments
 (0)