michael@0: // |jit-test| debug michael@0: setDebug(true); michael@0: x = "notset"; michael@0: michael@0: function child() { michael@0: x = "failure1"; michael@0: /* JSOP_STOP in parent. */ michael@0: trap(parent, 16, "success()"); michael@0: } michael@0: michael@0: function parent() { michael@0: x = "failure2"; michael@0: } michael@0: /* First op in parent. */ michael@0: trap(parent, 0, "child()"); michael@0: michael@0: function success() { michael@0: x = "success"; michael@0: } michael@0: michael@0: parent(); michael@0: assertEq(x, "success");