Skip to content

Commit

Permalink
Editorial: Align checks order in [[DefineOwnProperty]] overrides with…
Browse files Browse the repository at this point in the history
… ordinary method
  • Loading branch information
shvaikalesh committed Mar 1, 2021
1 parent d9e5692 commit d7ee6d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -11754,9 +11754,9 @@ <h1>[[DefineOwnProperty]] ( _P_, _Desc_ )</h1>
1. Let _numericIndex_ be ! CanonicalNumericIndexString(_P_).
1. If _numericIndex_ is not *undefined*, then
1. If ! IsValidIntegerIndex(_O_, _numericIndex_) is *false*, return *false*.
1. If IsAccessorDescriptor(_Desc_) is *true*, return *false*.
1. If _Desc_ has a [[Configurable]] field and if _Desc_.[[Configurable]] is *false*, return *false*.
1. If _Desc_ has an [[Enumerable]] field and if _Desc_.[[Enumerable]] is *false*, return *false*.
1. If ! IsAccessorDescriptor(_Desc_) is *true*, return *false*.
1. If _Desc_ has a [[Writable]] field and if _Desc_.[[Writable]] is *false*, return *false*.
1. If _Desc_ has a [[Value]] field, perform ? IntegerIndexedElementSet(_O_, _numericIndex_, _Desc_.[[Value]]).
1. Return *true*.
Expand Down Expand Up @@ -11990,10 +11990,10 @@ <h1>[[DefineOwnProperty]] ( _P_, _Desc_ )</h1>
1. If Type(_P_) is Symbol, return OrdinaryDefineOwnProperty(_O_, _P_, _Desc_).
1. Let _current_ be ? _O_.[[GetOwnProperty]](_P_).
1. If _current_ is *undefined*, return *false*.
1. If IsAccessorDescriptor(_Desc_) is *true*, return *false*.
1. If _Desc_.[[Writable]] is present and has value *false*, 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*.
1. If _Desc_.[[Enumerable]] is present and has value *false*, return *false*.
1. If ! IsAccessorDescriptor(_Desc_) is *true*, return *false*.
1. If _Desc_.[[Writable]] is present and has value *false*, return *false*.
1. If _Desc_.[[Value]] is present, return SameValue(_Desc_.[[Value]], _current_.[[Value]]).
1. Return *true*.
</emu-alg>
Expand Down

0 comments on commit d7ee6d7

Please sign in to comment.