michael@0: // |jit-test| debug michael@0: setDebug(true); michael@0: michael@0: function nop(){} michael@0: function caller(obj) { michael@0: var x = "failure"; michael@0: return x; michael@0: } michael@0: trap(caller, 9 /* GETLOCAL x */, "x = 'success'; nop()"); michael@0: assertEq(caller(this), "success");