You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 19, 2018. It is now read-only.
Reported by @spudly
The code above results in an Unexpected Token error.
If you remove 'async' or remove " = ''", it parses successfully.
http://babeljs.io/repl/#?evaluate=false&lineWrap=false&presets=es2015%2Creact%2Cstage-0&experimental=true&loose=true&spec=false&code=%2F%2F%20%40flow%0A%0Aconst%20testFunc%20%3D%20async%20(arg%3A%20string%20%3D%20'')%20%3D%3E%20%7B%7D%3B%0A%0Aexport%20default%20testFunc%3B%0A
Comment by @BLamy
This issue has nothing to do with flow. It's a combination of arrow functions, async-await and destructured default parameters.
The text was updated successfully, but these errors were encountered: