michael@0: // |jit-test| debug michael@0: setDebug(true); michael@0: x = "notset"; michael@0: michael@0: function doNothing() { } michael@0: michael@0: function myparent(nested) { michael@0: if (nested) { michael@0: /* JSOP_CALL to doNothing in myparent with nested = true. */ michael@0: trap(myparent, 36, "success()"); michael@0: doNothing(); michael@0: } else { michael@0: doNothing(); michael@0: } michael@0: } michael@0: /* JSOP_CALL to doNothing in myparent with nested = false. */ michael@0: trap(myparent, 51, "myparent(true)"); michael@0: michael@0: function success() { michael@0: x = "success"; michael@0: } michael@0: michael@0: myparent(false); michael@0: assertEq(x, "success");