This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
fix($parse): block assigning to fields of a constructor prototype #14951
Closed
gkalpak
wants to merge
3
commits into
angular:master
from
gkalpak:fix-parse-block-assigning-to-constructor-prototypes
Closed
fix($parse): block assigning to fields of a constructor prototype #14951
gkalpak
wants to merge
3
commits into
angular:master
from
gkalpak:fix-parse-block-assigning-to-constructor-prototypes
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5cf903b
to
aaf6226
Compare
I find the tests a little bit too long (maybe it could be split into cases using |
Thx, @lgalfaso! I'll break the tests up and merge. |
aaf6226
to
81c6f55
Compare
I split the tests up (and reverted the |
throw $parseMinErr('isecaf', | ||
'Assigning to a constructor is disallowed! Expression: {0}', fullExpression); | ||
'Assigning to a constructor or it\'s prototype is disallowed! Expression: {0}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its
rather than it's
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it that I can always find these typos in other people's PRs, but not mine 😕
81c6f55
to
a1e4d66
Compare
a1e4d66
to
ee3e197
Compare
3 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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)
See #14939.
Does this PR introduce a breaking change?
No.
Please check if the PR fulfills these requirements
Other information: