Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
arrow-functions
/
return-1.js
blob: b89d979e2d28ad7b795f4f06b23f194ec0d2e6c9 [
file
] [
log
] [
blame
]
// return from a block function works when there is no other enclosing function
var
f
=
a
=>
{
if
(
a
)
return
a
+
1
;
throw
"FAIL"
;
};
assertEq
(
f
(
1
),
2
);