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.
Following snippet:
compiles to:
https://babeljs.io/repl/#?experimental=false&evaluate=true&loose=false&spec=false&code=function%20A(%7Bset%7D)%20%7B%0A%20%20set%20%3D%20%22a%22%0A%7D
But when we try to assign default value to "set":
it crashes with the following error:
https://babeljs.io/repl/#?experimental=false&evaluate=true&loose=false&spec=false&code=function%20A(%7Bset%3D%22bar%22%7D)%20%7B%0A%20%20set%3D%22foo%22%0A%7D
On other hand if we assign alias to it:
It compiles just fine:
https://babeljs.io/repl/#?experimental=false&evaluate=true&loose=false&spec=false&code=function%20A(%7Bset%7D)%20%7B%0A%20%20set%3D%22foo%22%0A%7D
If "set" reserved why does it work in first case? If it's not why second case doesn't work? I consider this as a bug of compiler, am i right?
The text was updated successfully, but these errors were encountered: