blob: bc956a95dc91a2d573d8ab49c71df790ee6f2930 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// If a script is (re)lazified, findScripts should delazify it.
var dbg = new Debugger();
var g = newGlobal();
g.eval('function f(){}');
assertEq(g.eval('isLazyFunction(f)'), true);
dbg.addDebuggee(g);
dbg.findScripts();
assertEq(g.eval('isLazyFunction(f)'), false);
dbg.removeAllDebuggees();
relazifyFunctions();
assertEq(g.eval('isLazyFunction(f)'), true);
dbg.addDebuggee(g);
var scripts = dbg.findScripts();
assertEq(g.eval('isLazyFunction(f)'), false);
|