-
Notifications
You must be signed in to change notification settings - Fork 171
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
Symbol support #281
Symbol support #281
Conversation
const objSymbols = getOwnPropertySymbols(obj); | ||
const refSymbols = new Set(getOwnPropertySymbols(ref)); | ||
|
||
for (let i = 0; i < objSymbols.length; ++i) { |
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.
Use for...of in the future.
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.
Will do. Maybe we should update the style guide?
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.
Yep. @cjihrig ...
This is actually a breaking change since most tests where objects have symbols will fail as-is. |
Going to change deepEqual to ignore symbols by default for now. |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
This adds
Symbol
support to all relevant api methods.