summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/testDelArg2.js
blob: 09fcf1f57d68d99061976e62a532cf86df307a7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function f(del) {
    o = arguments;
    if (del)
        delete o[2];
    for (var i = 0; i < 10; ++i)
        assertEq(o[2] == undefined, del);
}

// record without arg deleted
f(false, 1,2,3,4);

// run with arg deleted
f(true, 1,2,3,4);