Debian Codegraph @

js/src/jit-test/tests/arrow-functions/return-2.js

raw
1 // return exits the innermost enclosing arrow (not an enclosing function)
2
3 function f() {
4 var g = x => { return !x; };
5 return "f:" + g(true);
6 }
7
8 assertEq(f(), "f:false");