-
Notifications
You must be signed in to change notification settings - Fork 27k
fix(zone.js): correct defineProperties for symbol props. #45060
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
Conversation
Currently, this `defineProperties` patch does not work for symbol properties which will not be enumerated by Object.keys. This CL adds a second case for symbols, with a small feature guard for IE.
Currently, this `defineProperties` patch does not work for symbol properties which will not be enumerated by Object.keys. This CL adds a second case for symbols, with a small feature guard for IE. Please check if your PR fulfills the following requirements: - [X] The commit message follows our guidelines: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit - [ ] Tests for the changes have been added (for bug fixes / features) - [ ] Docs have been added / updated (for bug fixes / features) I'm unsure if this change requires a change to tests or docs. Please let me know if it does. What kind of change does this PR introduce? <!-- Please check the one that applies to this PR using "x". --> - [X] Bugfix - [ ] Feature - [ ] Code style update (formatting, local variables) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] CI related changes - [ ] Documentation content changes - [ ] angular.io application / infrastructure changes - [ ] Other... Please describe: <!-- Please describe the current behavior that you are modifying, or link to a relevant issue. --> Issue Number: N/A Allows usage of Object.defineProperties with symbol properties. - [ ] Yes - [X] No <!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. --> Not unless there is an application currently depending on a symbol property _not_ being applied by defineProperties.
Currently, this defineProperties patch does not work for symbol properties which will not be enumerated by Object.keys. This CL adds a second case for symbols, with a small feature guard for IE.
Update type definition to remove `any` cast
Add test cases of `Object.definiProperties()` zone.js patch to test 1. defineProperties for normal string props 2. defineProperties for symbol props 3. defineProperties for normal string props + symbol props
Currently, this `defineProperties` patch does not work for symbol properties which will not be enumerated by Object.keys. This CL adds a second case for symbols, with a small feature guard for IE.
Update type definition to remove `any` cast
Add test cases of `Object.definiProperties()` zone.js patch to test 1. defineProperties for normal string props 2. defineProperties for symbol props 3. defineProperties for normal string props + symbol props
Currently, this `defineProperties` patch does not work for symbol properties which will not be enumerated by Object.keys. This CL adds a second case for symbols, with a small feature guard for IE.
Currently, this `defineProperties` patch does not work for symbol properties which will not be enumerated by Object.keys. This CL adds a second case for symbols, with a small feature guard for IE.
Currently, this defineProperties patch does not work for symbol properties which will not be enumerated by Object.keys. This CL adds a second case for symbols, with a small feature guard for IE.
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.
Hi, @varomodt
It seems there are several commits not belong to this PR, and also several commits seems not changing files, could you check it and rebase the PR?
Also could you please update the commit message to meet the guideline here https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit,
thank you.
|
@varomodt , I checked your commits, it seems there are some |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Currently, this
definePropertiespatch does not work for symbol properties which will not be enumerated by Object.keys. This CL adds a second case for symbols, with a small feature guard for IE.PR Checklist
Please check if your PR fulfills the following requirements:
I'm unsure if this change requires a change to tests or docs. Please let me know if it does.
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Allows usage of Object.defineProperties with symbol properties.
Does this PR introduce a breaking change?
Not unless there is an application currently depending on a symbol property not being applied by defineProperties.
Other information