Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
arrow-functions
/
return-3.js
blob: 09afcbe8ee57d68478547296b0b26d929fb622f7 [
file
] [
log
] [
blame
]
// return exits the innermost enclosing arrow (not an enclosing arrow)
function
f
()
{
var
g
=
a
=>
[
0
,
1
].
map
(
x
=>
{
return
x
+
a
;
});
return
g
(
13
).
toSource
();
}
assertEq
(
f
(),
"[13, 14]"
);