summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/jaeger/bug563000/untrap-own-trapsite.js
blob: db5c2f50b7926970a91bf6ed7d945dee18e49a48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| debug
setDebug(true);
x = "notset";
function child() {
  /* JSOP_STOP in parent */
  untrap(parent, 10);
  x = "success";
}
function parent() {
  x = "failure";
}
/* JSOP_STOP in parent */
trap(parent, 10, "child()");

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