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");