Skip to content

Commit

Permalink
Editorial: OrdinaryDefineOwnProperty can't throw for ordinary objects…
Browse files Browse the repository at this point in the history
… and arrays

`OrdinaryDefineOwnProperty` can return an abrupt completion if either
`O.[[GetOwnProperty]]` or `IsExtensible(O)` returns an abrupt completion. When
`O` is an ordinary object or an array, neither `O.[[GetOwnProperty]]` nor
`IsExtensible(O)` can return an abrupt completion, therefore
`OrdinaryDefineOwnProperty` is infallible.
  • Loading branch information
anba committed Aug 26, 2024
1 parent 6c621d2 commit 6b1a2b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -12678,7 +12678,7 @@ <h1>
<dd>an ordinary object _O_</dd>
</dl>
<emu-alg>
1. Return ? OrdinaryDefineOwnProperty(_O_, _P_, _Desc_).
1. Return ! OrdinaryDefineOwnProperty(_O_, _P_, _Desc_).
</emu-alg>

<emu-clause id="sec-ordinarydefineownproperty" type="abstract operation">
Expand Down Expand Up @@ -14092,7 +14092,7 @@ <h1>
1. Set _succeeded_ to ! OrdinaryDefineOwnProperty(_A_, *"length"*, _lengthDesc_).
1. Assert: _succeeded_ is *true*.
1. Return *true*.
1. Return ? OrdinaryDefineOwnProperty(_A_, _P_, _Desc_).
1. Return ! OrdinaryDefineOwnProperty(_A_, _P_, _Desc_).
</emu-alg>
</emu-clause>

Expand Down

0 comments on commit 6b1a2b5

Please sign in to comment.