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