blob: 964a6db581b2b53a4c091ecb4e904cfc22cd91d2 [file] [log] [blame]
// getVariable can get properties from with-block scopes.
var g = newGlobal();
var dbg = Debugger(g);
var v;
dbg.onDebuggerStatement = function (frame) {
v = frame.environment.getVariable("x");
};
g.eval("var x = 1; { let x = 2; with ({x: 3}) { debugger; } }");
assertEq(v, 3);