Sign in
webkit
/
WebKit
/
b0d7f9b249dd6483d6c7bc4f13c440c0842b7127
/
.
/
JSTests
/
stress
/
big-int-bitwise-xor-memory-stress.js
blob: 636ad2716a2a5b351ad6c60e45e7b29a22e90e58 [
file
] [
log
] [
blame
]
//@ runBigIntEnabled
function
assert
(
a
)
{
if
(!
a
)
throw
new
Error
(
"Bad assertion"
);
}
let a
=
0b11n
;
for
(
let i
=
0
;
i
<
1000000
;
i
++)
{
a
^=
0b01n
;
}
assert
(
a
===
0b11n
);