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

function f() {
    var g = x => { return !x; };
    return "f:" + g(true);
}

assertEq(f(), "f:false");