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