summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/return-3.js
blob: 09afcbe8ee57d68478547296b0b26d929fb622f7 (plain)
1
2
3
4
5
6
7
8
// return exits the innermost enclosing arrow (not an enclosing arrow)

function f() {
    var g = a => [0, 1].map(x => { return x + a; });
    return g(13).toSource();
}

assertEq(f(), "[13, 14]");