summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/loops/bug658290.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/jaeger/loops/bug658290.js')
-rw-r--r--js/src/jit-test/tests/jaeger/loops/bug658290.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/loops/bug658290.js b/js/src/jit-test/tests/jaeger/loops/bug658290.js
new file mode 100644
index 000000000..cfb42066a
--- /dev/null
+++ b/js/src/jit-test/tests/jaeger/loops/bug658290.js
@@ -0,0 +1,8 @@
+var SECTION = "15.4.5.2-2";
+addCase(new Array, 0, Math, Math.pow(2, SECTION));
+var arg = "", i = 0;
+var a = eval("new Array(" + arg + ")");
+addCase(a, i, +i + 1, Math.pow(2, 12) + i + 1, true);
+function addCase(object, old_len, set_len, new_len, checkitems) {
+ for (var i = old_len; i < new_len; i++) if (object[i] != 0) {}
+}