summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug620640.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/auto-regress/bug620640.js')
-rw-r--r--js/src/jit-test/tests/auto-regress/bug620640.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/auto-regress/bug620640.js b/js/src/jit-test/tests/auto-regress/bug620640.js
new file mode 100644
index 000000000..ebaa6e49b
--- /dev/null
+++ b/js/src/jit-test/tests/auto-regress/bug620640.js
@@ -0,0 +1,26 @@
+// Binary: cache/js-dbg-32-38f985b0522c-linux
+// Flags: -j
+//
+var g;
+var e;
+var w;
+for each (a in this) { }
+d = 3;
+x = 3;
+for (var m = 0; m < 9; ++m) {}
+for each (var c in this) { }
+for each(let d in [
+ [],
+ [],
+ [],
+ function () {},
+ undefined
+]) {
+ for each(let f in [
+ [],
+ [],
+ true,
+ [],
+ true
+ ]) {}
+}