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

Editorial: Avoid changing internal methods of ordinary objects #901

Conversation

ExE-Boss
Copy link
Contributor

@ExE-Boss ExE-Boss commented Jul 2, 2020

This fixes up #871, where I missed the fact that interface prototype objects of global objects and objects in the prototype chain of global objects have their [[SetPrototypeOf]] internal method changed in a way that makes them immutable prototype exotic objects.


Changing the [[SetPrototypeOf]] method of the result of OrdinaryObjectCreate goes against the intention of separating OrdinaryObjectCreate and MakeBasicObject, so this fixes that.


Preview | Diff

@annevk annevk requested a review from domenic July 3, 2020 05:27
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

Looks good with some editorial issues.

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
Co-authored-by: Domenic Denicola <d@domenic.me>
@ExE-Boss ExE-Boss requested a review from domenic July 6, 2020 20:21
index.bs Outdated Show resolved Hide resolved
@ExE-Boss ExE-Boss force-pushed the editorial/interface-prototype-object/avoid-changing-ordinary-object-internal-methods branch from d6407d6 to 2131856 Compare July 6, 2020 22:23
@ExE-Boss ExE-Boss requested a review from domenic July 6, 2020 22:23
@domenic domenic merged commit 318315c into whatwg:master Jul 7, 2020
@ExE-Boss ExE-Boss deleted the editorial/interface-prototype-object/avoid-changing-ordinary-object-internal-methods branch July 7, 2020 18:23
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

2 participants