Skip to content

Fix standalone arrow function expression statements

Fixes this issue:

$ bin/buble -v
Bublé version 0.13.1
$ echo '() => console.log("not printed");' | node
$ echo $?
0
$ echo '() => console.log("not printed");' | bin/buble | node
[stdin]:1
function () { return console.log("not printed"); };
         ^
SyntaxError: Unexpected token (

Merge request reports