Skip to content

Commit 8f78c66

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 <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
1 parent 10aaf30 commit 8f78c66

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

Lines changed: 2 additions & 2 deletions
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)