Skip to content
Closed
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
test: replaced 'assert.throws' with 'common.expectsError' - Fix #30185
  • Loading branch information
mpark86 committed Oct 31, 2019
commit cfdf43b48105773442c58ed032df4b0cc132dda8
4 changes: 3 additions & 1 deletion test/js-native-api/test_bigint/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const {
assert.strictEqual(num, TestWords(num));
});

assert.throws(CreateTooBigBigInt, {
common.expectsError(CreateTooBigBigInt, {
code: 'ERR_INVALID_RANGE',
name: 'RangeError',
message: 'Maximum BigInt size exceeded',
type: RangeError
});