Frame-environment-05.js (340B)
1 // Test that Debugger.Frame.prototype.environment works at all pcs of a script 2 // with an aliased block scope. 3 4 var g = newGlobal({newCompartment: true}); 5 var dbg = new Debugger(g); 6 dbg.onDebuggerStatement = function (frame) { 7 frame.onStep = (function () { frame.environment; }); 8 }; 9 g.eval("debugger; for (let i of [1,2,3]) print(i);");