diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/arrow-functions/block-1.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/arrow-functions/block-1.js b/js/src/jit-test/tests/arrow-functions/block-1.js new file mode 100644 index 0000000000..7bfdf43a6d --- /dev/null +++ b/js/src/jit-test/tests/arrow-functions/block-1.js @@ -0,0 +1,6 @@ +// Braces after => indicate a block body as opposed to an expression body. + +var f = () => {}; +assertEq(f(), undefined); +var g = () => ({}); +assertEq(typeof g(), 'object'); |