Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
arrow-functions
/
block-1.js
blob: 7bfdf43a6d6695b60f1ccbdc214a50b8c617dfbd [
file
] [
log
] [
blame
]
// Braces after => indicate a block body as opposed to an expression body.
var
f
=
()
=>
{};
assertEq
(
f
(),
undefined
);
var
g
=
()
=>
({});
assertEq
(
typeof
g
(),
'object'
);