assert: make sure throws is able to handle primitives by BridgeAR · Pull Request #20482 · nodejs/node · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 25 additions & 5 deletions lib/assert.js
4 changes: 2 additions & 2 deletions test/message/assert_throws_stack.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
assert.js:*
throw new AssertionError(obj);
^
throw err;
^

AssertionError [ERR_ASSERTION]: Input A expected to strictly deep-equal input B:
+ expected - actual
Expand Down
45 changes: 45 additions & 0 deletions test/parallel/test-assert.js