summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/baseline/bug840984.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/baseline/bug840984.js')
-rw-r--r--js/src/jit-test/tests/baseline/bug840984.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/baseline/bug840984.js b/js/src/jit-test/tests/baseline/bug840984.js
new file mode 100644
index 0000000000..410c3a8a4d
--- /dev/null
+++ b/js/src/jit-test/tests/baseline/bug840984.js
@@ -0,0 +1,17 @@
+function foo() {
+ x = null;
+}
+function f() {
+ for (var i=0; i<99; i++) {
+ x = null;
+ if (i >= 97) {
+ gc();
+ gc();
+ foo();
+ }
+ x = {};
+ if (i >= 97)
+ foo();
+ }
+}
+f();