1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// |jit-test| debug setDebug(true); x = "notset"; function myparent(nested) { if (nested) { /* noop call in myparent */ trap(myparent, 50, "success()"); } else { myparent(true); x = "failure"; noop(); } } function noop() { } function success() { x = "success"; } myparent(); assertEq(x, "success");