Bug 1219883 part 2 - Add test. r=me
authorJan de Mooij <jdemooij@mozilla.com>
Sat, 27 Feb 2016 17:32:46 +0100
changeset 324174 2b7831bde59d8313a2e6320aacf3e13ba09f98cf
parent 324173 bd00e87978b27e113286a2005361012abc4a39d1
child 324175 62b2390a22b28cda8000e5a1524ab96104361900
push id1128
push userjlund@mozilla.com
push dateWed, 01 Jun 2016 01:31:59 +0000
treeherdermozilla-release@fe0d30de989d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1219883
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1219883 part 2 - Add test. r=me
js/src/jit-test/tests/ion/bug1219883.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1219883.js
@@ -0,0 +1,14 @@
+function test() {
+    var arr = new Int8Array(400);
+    var idx = "384";
+    arr[idx] = 9;
+    assertEq(arr[idx], 9);
+    idx = "1000";
+    arr[idx] = 10;
+    assertEq(arr[idx], undefined);
+    idx = "-1";
+    arr[idx] = 0;
+    assertEq(arr[idx], undefined);
+}
+for (var i=0; i<10; i++)
+    test();