summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/array-length-double.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/array-length-double.js')
-rw-r--r--js/src/jit-test/tests/basic/array-length-double.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/array-length-double.js b/js/src/jit-test/tests/basic/array-length-double.js
new file mode 100644
index 0000000000..f4e0fd210d
--- /dev/null
+++ b/js/src/jit-test/tests/basic/array-length-double.js
@@ -0,0 +1,13 @@
+function getLength(arr) {
+ return arr.length;
+}
+function f() {
+ var arr1 = new Array(10);
+ var arr2 = new Array(4294967295);
+
+ for (var i=0; i<10; i++) {
+ assertEq(getLength(arr1), 10);
+ assertEq(getLength(arr2), 4294967295);
+ }
+}
+f();