Skip to content
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

Merged
merged 7 commits into from
Nov 28, 2018
Merged

Symbol support #281

merged 7 commits into from
Nov 28, 2018

Conversation

kanongil
Copy link
Contributor

This adds Symbol support to all relevant api methods.

@kanongil kanongil added the feature New functionality or improvement label Nov 26, 2018
This was referenced Nov 26, 2018
@hueniverse hueniverse self-assigned this Nov 28, 2018
@hueniverse hueniverse added this to the 6.0.5 milestone Nov 28, 2018
const objSymbols = getOwnPropertySymbols(obj);
const refSymbols = new Set(getOwnPropertySymbols(ref));

for (let i = 0; i < objSymbols.length; ++i) {
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. @cjihrig ...

@hueniverse hueniverse merged commit b3b5134 into hapijs:master Nov 28, 2018
@hueniverse hueniverse added the breaking changes Change that can breaking existing code label Nov 28, 2018
@hueniverse
Copy link
Contributor

This is actually a breaking change since most tests where objects have symbols will fail as-is.

@hueniverse hueniverse removed the breaking changes Change that can breaking existing code label Nov 28, 2018
@hueniverse
Copy link
Contributor

Going to change deepEqual to ignore symbols by default for now.

@lock
Copy link

lock bot commented Jan 9, 2020

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
@kanongil kanongil deleted the symbol-support branch July 19, 2022 09:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants