Debian Codegraph @

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

raw
1 // return from a block function works when there is no other enclosing function
2
3 var f = a => {
4 if (a)
5 return a + 1;
6 throw "FAIL";
7 };
8
9 assertEq(f(1), 2);