blob: 812ee21cbb883d07b14a0c6e7d795074c1f54d4d (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Test that getting a function's environment can unlazify scripts.
var g = newGlobal({newCompartment: true});
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;
|