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