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

fix($injector): add workaround for fat-arrow stringification in Chrome v50 #14495

Conversation

gkalpak
Copy link
Member

@gkalpak gkalpak commented Apr 22, 2016

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix.

What is the current behavior? (You can also link to an open issue here)
Chrome v50 throws when trying to annotate fat-arrow functions.
See #14487.

What is the new behavior (if this is a feature change)?
Fat-arrow functions get annotated correctly.

Does this PR introduce a breaking change?
No

Please check if the PR fulfills these requirements

Other information:
Everything works correctly on v52 without the fix. Not sure about v51.
I couldn't write a test, because the problem appears only when creating a fat-arrow function directly (not through eval()).

Closes #14487

@gkalpak
Copy link
Member Author

gkalpak commented Apr 22, 2016

BTW, a similar fix might help with #14240.

@mgol
Copy link
Member

mgol commented Apr 25, 2016

Add a note it's fixed in v52 and LGTM

@gkalpak gkalpak force-pushed the fix-injector-cope-with-Chrome-stringification-bug branch 2 times, most recently from 1c1b1e0 to be55ffc Compare April 28, 2016 07:51
@gkalpak gkalpak force-pushed the fix-injector-cope-with-Chrome-stringification-bug branch from be55ffc to dd4edcf Compare April 28, 2016 07:54
@gkalpak gkalpak closed this in 8dc1f8e Apr 28, 2016
@gkalpak gkalpak deleted the fix-injector-cope-with-Chrome-stringification-bug branch April 28, 2016 07:56
gkalpak added a commit that referenced this pull request Apr 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Arrow functions not working in Chrome 50 with ngMock inject
3 participants