[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / stress / big-int-literal-line-terminator.js
1 //@ runBigIntEnabled
2
3 function assert(a) {
4     if (!a)
5         throw new Error("Bad assertion");
6 }
7
8 var d;
9
10 assert(eval("d=5n\u000A") === 5n);
11 assert(d === 5n);
12
13 assert(eval("d=15n\u000D") === 15n);
14 assert(d === 15n);
15
16 assert(eval("d=19n\u2028;") === 19n);
17 assert(d === 19n);
18
19 assert(eval("d=95n\u2029;") === 95n);
20 assert(d === 95n);
21
22 assert(eval("d=\u000A5n") === 5n);
23 assert(d === 5n);
24
25 assert(eval("d=\u000D15n") === 15n);
26 assert(d === 15n);
27
28 assert(eval("d=\u202819n;") === 19n);
29 assert(d === 19n);
30
31 assert(eval("d=\u202995n;") === 95n);
32 assert(d === 95n);
33