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

[es6] "Bad invocation" when an immediately-invoked arrow function hasn't parenthesis around its argument #2351

Closed
nicolo-ribaudo opened this issue Apr 29, 2015 · 2 comments

Comments

@nicolo-ribaudo
Copy link
Contributor

This works:

/*jshint esnext: true */

((b) => {})(0);

This doesn't work: (But is the same of the first example)

/*jshint esnext: true */

(b => {})(0);

With the second I get this warning: Bad invocation

@jugglinmike
Copy link
Member

Confirmed. Thanks for the report!

@jugglinmike jugglinmike added the P2 label Apr 29, 2015
nicolo-ribaudo added a commit to nicolo-ribaudo/brackets-svg-font that referenced this issue Apr 29, 2015
nicolo-ribaudo added a commit to nicolo-ribaudo/jshint that referenced this issue May 17, 2015
@lukeapage
Copy link
Member

@nicolo-ribaudo would you like to make a PR for your fix commit referenced above? I can't find it...

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

3 participants