summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1219883.js
blob: 27d65f9c5927c911a8056cfd9bc15133e70c553a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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();