test262/implementation-contributed/javascriptcore/stress/big-int-bitwise-xor-memory-stress.js
test262-automation 1572edd570 [javascriptcore-test262-automation] Updated curation log with latest revision sha's from export and changed files.
sourceRevisionAtLastExport: e7f9d46220 targetRevisionAtLastExport: 0210918f1e
2018-11-30 19:08:46 +00:00

15 lines
192 B
JavaScript

//@ 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);