Skip to content

Commit d7c6a3e

Browse files
VoltrexKeyvatargos
authored andcommitted
test: call functions internally
All (or at least most) of the tests uses lambdas (or arrow functions if you will) to call these functions internally inside of directly calling them, this should also use this technique for consistency. PR-URL: #38560 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Zijian Liu <[email protected]>
1 parent c5b86f8 commit d7c6a3e

File tree

1 file changed

+2
-2
lines changed
  • test/js-native-api/test_bigint

1 file changed

+2
-2
lines changed

test/js-native-api/test_bigint/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ const {
4040
assert.strictEqual(num, TestWords(num));
4141
});
4242

43-
assert.throws(CreateTooBigBigInt, {
43+
assert.throws(() => CreateTooBigBigInt(), {
4444
name: 'Error',
4545
message: 'Invalid argument',
4646
});
4747

4848
// Test that we correctly forward exceptions from the engine.
49-
assert.throws(MakeBigIntWordsThrow, {
49+
assert.throws(() => MakeBigIntWordsThrow(), {
5050
name: 'RangeError',
5151
message: 'Maximum BigInt size exceeded'
5252
});

0 commit comments

Comments
 (0)