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