summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/rest-nested-arguments.js
blob: 18f5ca56df2aa1125e64048bdad058c68d87d307 (plain)
1
2
3
4
5
6
7
function f(...rest) {
    function nested() {
        return arguments.length;
    }
    return nested;
}
assertEq(f()(1, 2, 3), 3);