summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/pic/densearray.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/pic/densearray.js')
-rw-r--r--js/src/jit-test/tests/pic/densearray.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/pic/densearray.js b/js/src/jit-test/tests/pic/densearray.js
new file mode 100644
index 0000000000..1d0e8fa7c3
--- /dev/null
+++ b/js/src/jit-test/tests/pic/densearray.js
@@ -0,0 +1,12 @@
+function f() {
+ var o = [ 1, 2, 3, 4, 5 ];
+
+ for (var i = 6; i < 10; ++i)
+ o.push(i);
+
+ return o;
+}
+
+var o = f();
+
+assertEq(o.join(','), [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ].join(',')); \ No newline at end of file