Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line-endings before => of arrow functions. #172

Closed
mysticatea opened this issue Jul 19, 2015 · 3 comments
Closed

Line-endings before => of arrow functions. #172

mysticatea opened this issue Jul 19, 2015 · 3 comments
Assignees

Comments

@mysticatea
Copy link
Member

Currently, espree can parse below:

var a = ()
=> 0;

But this might be a syntax error.

http://www.ecma-international.org/ecma-262/6.0/#sec-arrow-function-definitions

ArrowFunction[In, Yield] :
    ArrowParameters[?Yield] [no LineTerminator here] => ConciseBody[?In]
@nzakas
Copy link
Member

nzakas commented Jul 21, 2015

Yup, that's a bug

@xjamundx
Copy link
Contributor

I'll take a look

@xjamundx xjamundx self-assigned this Aug 11, 2015
xjamundx pushed a commit to xjamundx/espree that referenced this issue Aug 12, 2015
@nzakas nzakas closed this as completed in 2b85a1d Aug 13, 2015
nzakas added a commit that referenced this issue Aug 13, 2015
Fix: Various Arrow Function Issues (fixes #187, fixes #145 and fixes #172)
@mysticatea
Copy link
Member Author

Thank you!

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

No branches or pull requests

4 participants