From cfdf43b48105773442c58ed032df4b0cc132dda8 Mon Sep 17 00:00:00 2001 From: mpark86 Date: Wed, 30 Oct 2019 20:16:19 -0400 Subject: [PATCH] test: replaced 'assert.throws' with 'common.expectsError' - Fix #30185 --- test/js-native-api/test_bigint/test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/js-native-api/test_bigint/test.js b/test/js-native-api/test_bigint/test.js index b92c810459321b..5328342fc039c7 100644 --- a/test/js-native-api/test_bigint/test.js +++ b/test/js-native-api/test_bigint/test.js @@ -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 });