Skip to content

Commit

Permalink
[spec] fix tuple-exotic-objects-defineownproperty (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
acutmore authored Sep 2, 2022
1 parent 8740ef1 commit ce434c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/ordinary-and-exotic-object-behaviours.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@ <h1>[[DefineOwnProperty]] ( _P_, _Desc_ )</h1>
1. If Type(_P_) is a Symbol, return *false*.
1. If _P_ is *"length"*, then
1. Let _lengthDesc_ be ! _T_.[[GetOwnProperty]](_P_).
1. Let _extensible_ be _T_.[[Extensible]].
1. Return IsCompatiblePropertyDescriptor(_extensible_, _Desc_, _lengthDesc_).
1. Return IsCompatiblePropertyDescriptor(*false*, _Desc_, _lengthDesc_).
1. If _Desc_.[[Writable]] is present and has value *true*, return *false*.
1. If _Desc_.[[Enumerable]] is present and has value *false*, return *false*.
1. If _Desc_.[[Configurable]] is present and has value *true*, return *false*.
Expand All @@ -262,7 +261,7 @@ <h1>[[DefineOwnProperty]] ( _P_, _Desc_ )</h1>
1. If _current_ is ~empty~ return *false*.
1. If IsAccessorDescriptor(_Desc_) is *true*, return *false*.
1. If _Desc_.[[Value]] is present, return SameValue(_Desc_.[[Value]], _current_).
1. Return *false*.
1. Return *true*.
</emu-alg>
</emu-clause>

Expand Down

0 comments on commit ce434c8

Please sign in to comment.