[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / stress / big-int-as-key.js
1 //@ runBigIntEnabled
2
3 function assert(a) {
4     if (!a)
5         throw new Error("Bad assertion");
6 }
7
8 let o = {};
9 let n = BigInt(0);
10
11 o[n] = "foo";
12 assert(o[n] === "foo");
13 assert(o["0"] === "foo");
14