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

fix($resource): fix parse errors on older Android WebViews #13989

Conversation

gabrielmaldi
Copy link
Contributor

Older Android WebViews (2.3) can't handle calling methods named after reserved keywords such as .if(), .return(), .default(), .catch(), .finally().

Without this change it is impossible to run an app on an Android 2.3 device directly using Angular source code.

Bracket notation is already being used, for example in $$AnimateAsyncRunFactoryProvider.

Related: #11455, #11051, #12610

Error is caused by reserved keyword 'finally'.

Closes angular#13989
@gabrielmaldi gabrielmaldi force-pushed the parse-errors-reserved-keywords branch from 561accd to 6a740aa Compare February 10, 2016 04:56
@gkalpak gkalpak self-assigned this Feb 10, 2016
@gkalpak gkalpak closed this in f0f6da3 Feb 10, 2016
gkalpak pushed a commit that referenced this pull request Feb 10, 2016
Error is caused by reserved keyword 'finally'.

Closes #13989
@gkalpak
Copy link
Member

gkalpak commented Feb 10, 2016

Backported to v1.5.x as df8db7b.

@gabrielmaldi gabrielmaldi deleted the parse-errors-reserved-keywords branch February 10, 2016 10:36
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.

3 participants