bug999655.js (307B)
1 var g = newGlobal({newCompartment: true}); 2 var dbg = new Debugger(g); 3 dbg.onNewScript = function(script) { 4 fscript = script.getChildScripts()[0]; 5 } 6 g.eval("function f(x) { arguments[0] = 3; return x }"); 7 fscript.setBreakpoint(0, {hit:function(frame) { 8 assertEq(frame.arguments[0], 1); 9 }}); 10 g.f(1);