Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Parse error when using "async" as a parameter name. #118

Closed
danez opened this issue Sep 8, 2016 · 0 comments · Fixed by #165
Closed

Parse error when using "async" as a parameter name. #118

danez opened this issue Sep 8, 2016 · 0 comments · Fixed by #165
Labels

Comments

@danez
Copy link
Member

danez commented Sep 8, 2016

Reported by @juandopazo

When using async as a parameter name, we get an "Unexpected token" error.

See http://babeljs.io/repl/#?evaluate=false&lineWrap=false&presets=es2015%2Creact%2Cstage-2&experimental=false&loose=false&spec=false&code=const%20test%20%3D%20(%7Basync%20%3D%20true%7D)%20%3D%3E%20%7B%0A%E2%80%82%E2%80%82console.log(async)%3B%0A%7D%3B

const test = ({async = true}) => {
  console.log(async);
};
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant