bug1689880-2.js (472B)
1 // |jit-test| error: ReferenceError 2 3 // We elide the uninitialised lexical check for the second access to |x|, 4 // because we statically know that the first access will throw an error. 5 // `x ? . : .` is compiled straight from bytecode without going through any 6 // ICs, so already on first (eager) compilation we may be Warp compiling. 7 8 function testConditional(x = (x, (x ? 1 : 0))) { 9 function inner() { 10 // Close over |x|. 11 x; 12 } 13 } 14 testConditional();