summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/block-1.js
blob: 7bfdf43a6d6695b60f1ccbdc214a50b8c617dfbd (plain)
1
2
3
4
5
6
// Braces after => indicate a block body as opposed to an expression body.

var f = () => {};
assertEq(f(), undefined);
var g = () => ({});
assertEq(typeof g(), 'object');