summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug921035.js
blob: 33b8c5c5a879e45dac9d097b75a34138f5c2c049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| error: TypeError

function $ERROR() {}
function testMultipleArgumentsObjects() {
    var testargs = arguments;
    var f = function (which) {
        var args = [ testargs ];
        return args[which][0];
    };
    var arr = [0, 0, 0, 0, 1];
    for (var i = 0; i < arr.length; i++)
        $ERROR[i] = f(arr[i]);
}
testMultipleArgumentsObjects()