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: remove some unnecessary calls to SameValue #3202

Merged
merged 1 commit into from
Oct 19, 2023
Merged
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
6 changes: 3 additions & 3 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -12660,8 +12660,8 @@ <h1>
1. If _Desc_ does not have any fields, return *true*.
1. If _current_.[[Configurable]] is *false*, then
1. If _Desc_ has a [[Configurable]] field and _Desc_.[[Configurable]] is *true*, return *false*.
1. If _Desc_ has an [[Enumerable]] field and SameValue(_Desc_.[[Enumerable]], _current_.[[Enumerable]]) is *false*, return *false*.
1. If IsGenericDescriptor(_Desc_) is *false* and SameValue(IsAccessorDescriptor(_Desc_), IsAccessorDescriptor(_current_)) is *false*, return *false*.
1. If _Desc_ has an [[Enumerable]] field and _Desc_.[[Enumerable]] is not _current_.[[Enumerable]], return *false*.
1. If IsGenericDescriptor(_Desc_) is *false* and IsAccessorDescriptor(_Desc_) is not IsAccessorDescriptor(_current_), return *false*.
1. If IsAccessorDescriptor(_current_) is *true*, then
1. If _Desc_ has a [[Get]] field and SameValue(_Desc_.[[Get]], _current_.[[Get]]) is *false*, return *false*.
1. If _Desc_ has a [[Set]] field and SameValue(_Desc_.[[Set]], _current_.[[Set]]) is *false*, return *false*.
Expand Down Expand Up @@ -15407,7 +15407,7 @@ <h1>[[IsExtensible]] ( ): either a normal completion containing a Boolean or a t
1. Return ? IsExtensible(_target_).
1. Let _booleanTrapResult_ be ToBoolean(? Call(_trap_, _handler_, « _target_ »)).
1. Let _targetResult_ be ? IsExtensible(_target_).
1. If SameValue(_booleanTrapResult_, _targetResult_) is *false*, throw a *TypeError* exception.
1. If _booleanTrapResult_ is not _targetResult_, throw a *TypeError* exception.
1. Return _booleanTrapResult_.
</emu-alg>
<emu-note>
Expand Down
Loading