[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / stress / arrowfunction-name.js
1 function assert(b) {
2     if (!b)
3         throw new Error("Bad assertion")
4 }
5
6 // Anonymous
7 assert((()=>{}).name === "");
8
9 // Inferred name with global variable.
10 f = () => {};
11 assert(f.name === "f");
12
13 // Inferred name with variable declaration.
14 let lf = () => {};
15 assert(lf.name === "lf");