summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1276631.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/gc/bug-1276631.js')
-rw-r--r--js/src/jit-test/tests/gc/bug-1276631.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/gc/bug-1276631.js b/js/src/jit-test/tests/gc/bug-1276631.js
new file mode 100644
index 000000000..f80e7f021
--- /dev/null
+++ b/js/src/jit-test/tests/gc/bug-1276631.js
@@ -0,0 +1,17 @@
+gczeal(15,5);
+try {
+ foobar();
+} catch (e) {}
+function newFunc(x) {
+ new Function(x)();
+};
+loadFile(`
+ try { gczeal(10, 2)() } catch (e) {}
+`);
+function loadFile(lfVarx) {
+ function newFunc(x) {
+ new Function(x)();
+ };
+ newFunc(lfVarx);
+ if (helperThreadCount() && getJitCompilerOptions()["offthread-compilation.enable"]) {}
+}