Debian Codegraph @

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

raw
1 // return exits the innermost enclosing arrow (not an enclosing arrow)
2
3 load(libdir + "asserts.js");
4
5 function f() {
6 var g = a => [0, 1].map(x => { return x + a; });
7 return g(13);
8 }
9
10 assertDeepEq(f(), [13, 14]);