Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(injector): support arrow functions with no parenthesis #12895

Closed
wants to merge 4 commits into from
Closed

fix(injector): support arrow functions with no parenthesis #12895

wants to merge 4 commits into from

Conversation

shahata
Copy link
Contributor

@shahata shahata commented Sep 20, 2015

I initially upgraded jscs so it will parse es6 syntax correctly, but since eventually I used eval in order to not break old browsers, it is not really needed. I think we can upgrade jscs anyway, so I'm leaving this commit as is.

Shahar Talmi added 4 commits September 20, 2015 11:22
with arrow functions parenthesis are optional in case you have exactly
one argument to the function. the previous regexp assumed function
arguments are always inside parenthesis and so it didn't annotate
functions like `$http => $http.get(...)` correctly
@shahata
Copy link
Contributor Author

shahata commented Sep 20, 2015

closing in favor of #12890

@shahata shahata closed this Sep 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants