michael@0: // |jit-test| debug michael@0: setDebug(true); michael@0: x = "notset"; michael@0: michael@0: function myparent(nested) { michael@0: if (nested) { michael@0: /* noop call in myparent */ michael@0: trap(myparent, 62, "success()"); michael@0: } else { michael@0: myparent(true); michael@0: x = "failure"; michael@0: noop(); michael@0: } michael@0: } michael@0: function noop() { } michael@0: function success() { x = "success"; } michael@0: michael@0: myparent(); michael@0: assertEq(x, "success");