Skip to content

Commit 90732f8

Browse files
authored
Assert if splitI64 used when WASM_BIGINT is enabled. NFC (#19269)
At least today, the idea is that this should never be used when WASM_BIGINT is enabled.
1 parent dc4d654 commit 90732f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parseTools.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ function splitI64(value) {
223223
// For negatives, we need to ensure a -1 if the value is overall negative,
224224
// even if not significant negative component
225225

226+
assert(!WASM_BIGINT, 'splitI64 should not be used when WASM_BIGINT is enabled');
226227
const low = value + '>>>0';
227228
const high = makeInlineCalculation(
228229
asmCoercion('Math.abs(VALUE)', 'double') + ' >= ' + asmEnsureFloat('1', 'double') + ' ? ' +

0 commit comments

Comments
 (0)