summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug489836.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/auto-regress/bug489836.js')
-rw-r--r--js/src/jit-test/tests/auto-regress/bug489836.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/auto-regress/bug489836.js b/js/src/jit-test/tests/auto-regress/bug489836.js
new file mode 100644
index 0000000000..ba105cb5a2
--- /dev/null
+++ b/js/src/jit-test/tests/auto-regress/bug489836.js
@@ -0,0 +1,13 @@
+// Binary: cache/js-dbg-32-1a1611bb1063-linux
+// Flags: -j
+//
+var e;
+function w(f, y) {
+ e = 2 * f;
+ for (var i = 0; i < 1; i++) {
+ }
+}
+for (var u = 0; u < 4; ++u) {
+ w(undefined, 0);
+ w(1, (2) * 2);
+}