summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1406437.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/jit-test/tests/debug/bug1406437.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/debug/bug1406437.js b/js/src/jit-test/tests/debug/bug1406437.js
new file mode 100644
index 0000000000..4085f80a2d
--- /dev/null
+++ b/js/src/jit-test/tests/debug/bug1406437.js
@@ -0,0 +1,5 @@
+var g = newGlobal({newCompartment: true});
+cloneAndExecuteScript('function f() {}', g);
+var dbg = new Debugger;
+var dg = dbg.addDebuggee(g);
+dg.getOwnPropertyDescriptor('f').value.script.source;