michael@0: // getVariable sees properties inherited from the global object's prototype chain. michael@0: michael@0: var g = newGlobal(); michael@0: var dbg = Debugger(g); michael@0: var log = ''; michael@0: dbg.onDebuggerStatement = function (frame) { michael@0: log += frame.environment.getVariable("x") + frame.environment.getVariable("y"); michael@0: }; michael@0: g.eval("Object.getPrototypeOf(this).x = 'a';\n" + michael@0: "Object.prototype.y = 'b';\n" + michael@0: "debugger;\n"); michael@0: assertEq(log, 'ab');