summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/jaeger/bug563000/trap-parent-from-trap.js
blob: 2b4653e7cadc4058991f353dacc5c9c209aade1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// |jit-test| debug
setDebug(true);
x = "notset";

function child() {
  x = "failure1";
  /* JSOP_STOP in parent. */
  trap(parent, 10, "success()");
}

function parent() {
  x = "failure2";
}
/* First op in parent. */
trap(parent, 0, "child()");

function success() {
  x = "success";
}

parent();
assertEq(x, "success");