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