Sign in
webkit
/
WebKit
/
90848d1a03498139e72a756e822580544ca9d408
/
.
/
JSTests
/
stress
/
big-int-multiply-memory-stress.js
blob: 1abaa7e28f9aee65d21c0d36f63df68023b9c897 [
file
] [
log
] [
blame
]
//@ runBigIntEnabled
function
assert
(
a
)
{
if
(!
a
)
throw
new
Error
(
"Bad assertion"
);
}
let a
=
0n
;
let b
=
1n
;
for
(
let i
=
0
;
i
<
1000000
;
i
++)
{
a
=
b
*
30n
;
}
assert
(
a
===
30n
);