[JSC] Do not use asArrayModes() with Structures because it discards TypedArray inform...
[WebKit-https.git] / JSTests / stress / big-int-bitwise-xor-memory-stress.js
1 //@ runBigIntEnabled
2
3 function assert(a) {
4     if (!a)
5         throw new Error("Bad assertion");
6 }
7
8 let a = 0b11n;
9 for (let i = 0; i < 1000000; i++) {
10     a ^= 0b01n;
11 }
12
13 assert(a === 0b11n);
14