summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/block-2.js
blob: 66637f53fa1b01d3403fe2a135ac13d55cc0ac6b (plain)
1
2
3
4
// Block arrow functions don't return the last expression-statement value automatically.

var f = a => { a + 1; };
assertEq(f(0), undefined);