Skip to content

Commit

Permalink
test: call functions internally
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
VoltrexKeyva authored and jasnell committed May 7, 2021
1 parent 184e0f7 commit 29f1b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/js-native-api/test_bigint/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ const {
assert.strictEqual(num, TestWords(num));
});

assert.throws(CreateTooBigBigInt, {
assert.throws(() => CreateTooBigBigInt(), {
name: 'Error',
message: 'Invalid argument',
});

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

0 comments on commit 29f1b60

Please sign in to comment.