summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testMultipleArgumentsObjects.js
blob: dd8285d6439a7dc34e44ef58b5478ad41c386327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function testMultipleArgumentsObjects() {
    var testargs = arguments;
    var f = function (name, which) {
        var args = [testargs, arguments];
        return args[which][0];
    };
    var arr = [0, 0, 0, 0, 1];
    for (var i = 0; i < arr.length; i++)
        arr[i] = f("f", arr[i]);
    return arr + '';
}
assertEq(testMultipleArgumentsObjects(), ",,,,f");