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

Arrow function followed by slash #536

Closed
Ginden opened this issue May 24, 2017 · 3 comments
Closed

Arrow function followed by slash #536

Ginden opened this issue May 24, 2017 · 3 comments

Comments

@Ginden
Copy link

Ginden commented May 24, 2017

Related to this discussion.

Input:

x=x=>{}/alert(1)/+alert(2)// alerts on edge, syntax error on other browsers

Result: parses succesfully.

Expected result: SyntaxError

@hzoo
Copy link
Member

hzoo commented May 24, 2017

Hey @Ginden! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.

@nicolo-ribaudo
Copy link
Member

Also () => {} ? a : b.

Can I fix this issue?

@existentialism
Copy link
Member

@nicolo-ribaudo go for it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants