Debugger-findScripts-23.js (527B)
1 // |jit-test| skip-if: isLcovEnabled() 2 3 // If a script is (re)lazified, findScripts should not delazify it. 4 5 var dbg = new Debugger(); 6 7 var g = newGlobal({newCompartment: true}); 8 g.eval('function f(){}'); 9 assertEq(g.eval('isLazyFunction(f)'), true); 10 11 dbg.addDebuggee(g); 12 dbg.findScripts(); 13 assertEq(g.eval('isLazyFunction(f)'), true); 14 15 dbg.removeAllDebuggees(); 16 relazifyFunctions(); 17 assertEq(g.eval('isLazyFunction(f)'), true); 18 19 dbg.addDebuggee(g); 20 var scripts = dbg.findScripts(); 21 assertEq(g.eval('isLazyFunction(f)'), true);