invokeFunctionMagic.js (439B)
1 // JS_IS_CONSTRUCTING 2 var g = newGlobal(); 3 do { 4 new g.String(); // jit::CreateThis passes JS_IS_CONSTRUCTING 5 } while (!inIon()); 6 7 // JS_UNINITIALIZED_LEXICAL 8 function dontAbortWholeCompilation() { 9 class B {}; 10 class D extends B { 11 constructor() { super(); } 12 }; 13 14 return D; 15 } 16 var classImpl = dontAbortWholeCompilation(); 17 18 do { 19 new classImpl(); // jit::CreateThis passes JS_UNINITIALIZED_LEXICAL 20 } while (!inIon());