summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1847360.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/debug/bug1847360.js')
-rw-r--r--js/src/jit-test/tests/debug/bug1847360.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/debug/bug1847360.js b/js/src/jit-test/tests/debug/bug1847360.js
new file mode 100644
index 0000000000..89d1d73afe
--- /dev/null
+++ b/js/src/jit-test/tests/debug/bug1847360.js
@@ -0,0 +1,18 @@
+try {
+ g = newGlobal({ newCompartment: true });
+ g.z = this;
+ g.eval(
+ "(" +
+ function () {
+ Debugger(z).onExceptionUnwind = function (y) {
+ y.eval("f=0");
+ };
+ } +
+ ")()"
+ );
+ (function f() {
+ x;
+ })();
+} catch (e) {
+ assertEq(e instanceof ReferenceError, true);
+}