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

Change the named property visibility algorithm so that existing own props always make corresponding named props invisible. #174

Merged
merged 2 commits into from Sep 11, 2016

Conversation

bzbarsky
Copy link
Collaborator

@bzbarsky bzbarsky commented Sep 9, 2016

Fixes #152.

1. If |O| has an own property named |P|, then return false.
<div class="note">
Note that this will include cases in which an object has unforgeable properties, because in practice those are always set up before objects have any supported property names, and once set up will make the corresponding named properties invisible.
</div>
Copy link
Member

Choose a reason for hiding this comment

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

These three lines can be replaced with Note: This will include....

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done, thanks.

@domenic
Copy link
Member

domenic commented Sep 9, 2016

(In a few meetings, will look at the substantive stuff in an hour or two...)

@bzbarsky
Copy link
Collaborator Author

bzbarsky commented Sep 9, 2016

@yuki3, @cdumez, @travisleithead, any remaining concerns here?

@domenic
Copy link
Member

domenic commented Sep 9, 2016

This LGTM. It might be worth adding a note in the commit message that this fixes #152 by choosing option (1).

@bzbarsky
Copy link
Collaborator Author

bzbarsky commented Sep 9, 2016

It might be worth adding a note in the commit message that this fixes #152 by choosing option (1).

Will do.

@domenic domenic removed their assignment Sep 9, 2016
…rops always make corresponding named props invisible.

Fixes <whatwg#152> by picking option (1).
@tobie tobie merged commit 9ea873f into whatwg:gh-pages Sep 11, 2016
@yuki3
Copy link

yuki3 commented Sep 12, 2016

I have no concern here. LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants