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: Use some more abstract operations. #601

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ urlPrefix: https://tc39.github.io/ecma262/; spec: ECMA-262
text: NormalCompletion; url: sec-normalcompletion
text: ObjectCreate; url: sec-objectcreate
text: OrdinaryDefineOwnProperty; url: sec-ordinarydefineownproperty
text: OrdinaryDelete; url: sec-ordinarydelete
text: OrdinaryGetOwnProperty; url: sec-ordinarygetownproperty
text: OrdinaryPreventExtensions; url: sec-ordinarypreventextensions
text: OrdinarySetWithOwnDescriptor; url: sec-ordinarysetwithowndescriptor
Expand Down Expand Up @@ -12553,9 +12554,9 @@ Issue: Define those internal methods imperatively instead.
1. If |operation| was declared with a [=return type=] of {{boolean}}
and the steps returned <emu-val>false</emu-val>, then return <emu-val>false</emu-val>.
1. Return <emu-val>true</emu-val>.
1. If |O| has an own property with name |P|, then:
1. If <a abstract-op>OrdinaryGetOwnProperty</a>(|O|, |P|) is not <emu-val>undefined</emu-val>, then:
1. If the property is not configurable, then return <emu-val>false</emu-val>.
1. Otherwise, remove the property from |O|.
1. Remove the own property with name |P| from |O|.
1. Return <emu-val>true</emu-val>.
</div>

Expand Down Expand Up @@ -12634,7 +12635,7 @@ internal method as follows.
The algorithm operates as follows, with property name |P| and object |O|:

1. If |P| is not a [=supported property name=] of |O|, then return false.
1. If |O| has an own property named |P|, then return false.
1. If <a abstract-op>OrdinaryGetOwnProperty</a>(|O|, |P|) is not <emu-val>undefined</emu-val>, then return false.

Note: This will include cases in which |O| has unforgeable properties,
because in practice those are always set up before objects have any supported property names,
Expand Down