Skip to content

Commit

Permalink
Editorial: Declare the target-alias in the preamble
Browse files Browse the repository at this point in the history
... rather than the algorithm, for internal methods of an arguments exotic object.

(See issue tc39#1981)
  • Loading branch information
jmdyck committed Dec 1, 2020
1 parent 71c7076 commit aecf3cd
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -8939,9 +8939,8 @@ <h1>Arguments Exotic Objects</h1>

<emu-clause id="sec-arguments-exotic-objects-getownproperty-p">
<h1>[[GetOwnProperty]] ( _P_ )</h1>
<p>The [[GetOwnProperty]] internal method of an arguments exotic object when called with a property key _P_ performs the following steps:</p>
<p>The [[GetOwnProperty]] internal method of an arguments exotic object _args_ when called with a property key _P_ performs the following steps:</p>
<emu-alg>
1. Let _args_ be the arguments object.
1. Let _desc_ be OrdinaryGetOwnProperty(_args_, _P_).
1. If _desc_ is *undefined*, return _desc_.
1. Let _map_ be _args_.[[ParameterMap]].
Expand All @@ -8954,9 +8953,8 @@ <h1>[[GetOwnProperty]] ( _P_ )</h1>

<emu-clause id="sec-arguments-exotic-objects-defineownproperty-p-desc">
<h1>[[DefineOwnProperty]] ( _P_, _Desc_ )</h1>
<p>The [[DefineOwnProperty]] internal method of an arguments exotic object when called with a property key _P_ and Property Descriptor _Desc_ performs the following steps:</p>
<p>The [[DefineOwnProperty]] internal method of an arguments exotic object _args_ when called with a property key _P_ and Property Descriptor _Desc_ performs the following steps:</p>
<emu-alg>
1. Let _args_ be the arguments object.
1. Let _map_ be _args_.[[ParameterMap]].
1. Let _isMapped_ be HasOwnProperty(_map_, _P_).
1. Let _newArgDesc_ be _Desc_.
Expand All @@ -8981,9 +8979,8 @@ <h1>[[DefineOwnProperty]] ( _P_, _Desc_ )</h1>

<emu-clause id="sec-arguments-exotic-objects-get-p-receiver">
<h1>[[Get]] ( _P_, _Receiver_ )</h1>
<p>The [[Get]] internal method of an arguments exotic object when called with a property key _P_ and ECMAScript language value _Receiver_ performs the following steps:</p>
<p>The [[Get]] internal method of an arguments exotic object _args_ when called with a property key _P_ and ECMAScript language value _Receiver_ performs the following steps:</p>
<emu-alg>
1. Let _args_ be the arguments object.
1. Let _map_ be _args_.[[ParameterMap]].
1. Let _isMapped_ be ! HasOwnProperty(_map_, _P_).
1. If _isMapped_ is *false*, then
Expand All @@ -8996,9 +8993,8 @@ <h1>[[Get]] ( _P_, _Receiver_ )</h1>

<emu-clause id="sec-arguments-exotic-objects-set-p-v-receiver">
<h1>[[Set]] ( _P_, _V_, _Receiver_ )</h1>
<p>The [[Set]] internal method of an arguments exotic object when called with property key _P_, value _V_, and ECMAScript language value _Receiver_ performs the following steps:</p>
<p>The [[Set]] internal method of an arguments exotic object _args_ when called with property key _P_, value _V_, and ECMAScript language value _Receiver_ performs the following steps:</p>
<emu-alg>
1. Let _args_ be the arguments object.
1. If SameValue(_args_, _Receiver_) is *false*, then
1. Let _isMapped_ be *false*.
1. Else,
Expand All @@ -9013,9 +9009,8 @@ <h1>[[Set]] ( _P_, _V_, _Receiver_ )</h1>

<emu-clause id="sec-arguments-exotic-objects-delete-p">
<h1>[[Delete]] ( _P_ )</h1>
<p>The [[Delete]] internal method of an arguments exotic object when called with a property key _P_ performs the following steps:</p>
<p>The [[Delete]] internal method of an arguments exotic object _args_ when called with a property key _P_ performs the following steps:</p>
<emu-alg>
1. Let _args_ be the arguments object.
1. Let _map_ be _args_.[[ParameterMap]].
1. Let _isMapped_ be ! HasOwnProperty(_map_, _P_).
1. Let _result_ be ? OrdinaryDelete(_args_, _P_).
Expand Down

0 comments on commit aecf3cd

Please sign in to comment.