Sign in
webkit
/
WebKit
/
6e2a77f8cb18067e3ef1240a3602dba85379b5cd
/
.
/
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
);