Sign in
webkit
/
WebKit
/
6cdbec3e6711cd621019b396b1c96891f8cf0596
/
.
/
JSTests
/
stress
/
big-int-mod-memory-stress.js
blob: 9b67d718f76add8495545df9ee1651a12e654eea [
file
] [
log
] [
blame
]
//@ runBigIntEnabled
function
assert
(
a
)
{
if
(!
a
)
throw
new
Error
(
"Bad assertion"
);
}
let a
=
0n
;
let b
=
30n
;
for
(
let i
=
0
;
i
<
1000000
;
i
++)
{
a
=
b
%
2n
;
}
assert
(
a
===
0n
);