blob: 857c20716f98b3f92ab2c1d73cd0ae3a5d0c675b (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Test that getting a function's environment can unlazify scripts.
var g = newGlobal();
g.eval('function f() { }');
var dbg = new Debugger;
var gw = dbg.makeGlobalObjectReference(g);
var fw = gw.getOwnPropertyDescriptor('f').value;
gc();
dbg.addDebuggee(g);
var fenv = fw.environment;
|