summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testFunctionStatementNamedArguments.js
blob: 967ab3e938b906847cd2179cdfc334841536156c (plain)
1
2
3
4
5
6
7
8
9
10
var g;
function foo(b) {
    if (b)
        function arguments() {};
    return arguments;
}

var a = foo(true);
assertEq(typeof a, "function");
assertEq(a.name, "arguments");