Sign in
webkit
/
WebKit
/
5ee98c8883ab121686764809a2752a0eb41e4c7c
/
.
/
JSTests
/
stress
/
big-int-div-memory-stress.js
blob: 0cf0b9b6faf3ef85c5f59d3ba9bf4a974f73f6f4 [
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
===
15n
);