Skip to content

Commit

Permalink
Editorial: replace the only instance of CreateMethodProperty with Def…
Browse files Browse the repository at this point in the history
…ineMethodProperty (#3279)
  • Loading branch information
ljharb committed Feb 17, 2024
1 parent 24eed9a commit 6ec325c
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -6117,29 +6117,6 @@ <h1>
</emu-note>
</emu-clause>

<emu-clause id="sec-createmethodproperty" type="abstract operation">
<h1>
CreateMethodProperty (
_O_: an Object,
_P_: a property key,
_V_: an ECMAScript language value,
): ~unused~
</h1>
<dl class="header">
<dt>description</dt>
<dd>It is used to create a new own property of an ordinary object.</dd>
</dl>
<emu-alg>
1. Assert: _O_ is an ordinary, extensible object with no non-configurable properties.
1. Let _newDesc_ be the PropertyDescriptor { [[Value]]: _V_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
1. Perform ! DefinePropertyOrThrow(_O_, _P_, _newDesc_).
1. Return ~unused~.
</emu-alg>
<emu-note>
<p>This abstract operation creates a property whose attributes are set to the same defaults used for built-in methods and methods defined using class declaration syntax. Normally, the property will not already exist. If it does exist, DefinePropertyOrThrow is guaranteed to complete normally.</p>
</emu-note>
</emu-clause>

<emu-clause id="sec-createdatapropertyorthrow" type="abstract operation">
<h1>
CreateDataPropertyOrThrow (
Expand Down Expand Up @@ -24956,7 +24933,7 @@ <h1>
1. Perform SetFunctionName(_F_, _className_).
1. Perform MakeConstructor(_F_, *false*, _proto_).
1. If |ClassHeritage| is present, set _F_.[[ConstructorKind]] to ~derived~.
1. Perform CreateMethodProperty(_proto_, *"constructor"*, _F_).
1. Perform ! DefineMethodProperty(_proto_, *"constructor"*, _F_, *false*).
1. If |ClassBody| is not present, let _elements_ be a new empty List.
1. Else, let _elements_ be NonConstructorElements of |ClassBody|.
1. Let _instancePrivateMethods_ be a new empty List.
Expand Down

0 comments on commit 6ec325c

Please sign in to comment.