summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/pic/getelem-large-index.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/pic/getelem-large-index.js')
-rw-r--r--js/src/jit-test/tests/pic/getelem-large-index.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/pic/getelem-large-index.js b/js/src/jit-test/tests/pic/getelem-large-index.js
new file mode 100644
index 000000000..c7f813ea2
--- /dev/null
+++ b/js/src/jit-test/tests/pic/getelem-large-index.js
@@ -0,0 +1,13 @@
+/*
+ * Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/
+ */
+function testProperty(i)
+{
+ actual = obj[String(i)];
+}
+
+var obj = {};
+var index = [null, 1073741824, 1073741825];
+for (var j in index)
+ testProperty(index[j]);