summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/toid.js
blob: 33341a5a6fdd6b4e6dcbea76b877f76f0ea9235f (plain)
1
2
3
4
5
6
7
8
9
10
function f(arr, index) {
    for (var i=0; i<100; i++) {
        arr[index]++;
        ++arr[index];
    }
}
var arr = [1, 2, 3];
f(arr, "1");
f(arr, 1);
assertEq(arr[1], 402);