summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/jaeger/bug563000/simple-untrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/jaeger/bug563000/simple-untrap.js')
-rw-r--r--js/src/jit-test/tests/jaeger/bug563000/simple-untrap.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/bug563000/simple-untrap.js b/js/src/jit-test/tests/jaeger/bug563000/simple-untrap.js
new file mode 100644
index 0000000..6878021
--- /dev/null
+++ b/js/src/jit-test/tests/jaeger/bug563000/simple-untrap.js
@@ -0,0 +1,12 @@
+// |jit-test| debug
+setDebug(true);
+var x = "notset";
+function main() { x = "success"; }
+function failure() { x = "failure"; }
+
+/* The JSOP_STOP in a. */
+trap(main, 8, "failure()");
+untrap(main, 8);
+main();
+
+assertEq(x, "success");