| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 10aaf30 commit 8f78c66
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,13 +40,13 @@ const { | |||
| 40 | 40 | assert.strictEqual(num, TestWords(num)); | |
| 41 | 41 | }); | |
| 42 | 42 | ||
| 43 | - assert.throws(CreateTooBigBigInt, { | ||
| 43 | + assert.throws(() => CreateTooBigBigInt(), { | ||
| 44 | 44 | name: 'Error', | |
| 45 | 45 | message: 'Invalid argument', | |
| 46 | 46 | }); | |
| 47 | 47 | ||
| 48 | 48 | // Test that we correctly forward exceptions from the engine. | |
| 49 | - assert.throws(MakeBigIntWordsThrow, { | ||
| 49 | + assert.throws(() => MakeBigIntWordsThrow(), { | ||
| 50 | 50 | name: 'RangeError', | |
| 51 | 51 | message: 'Maximum BigInt size exceeded' | |
| 52 | 52 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments