Skip to content

Commit 6ec325c

Browse files
committed
Editorial: replace the only instance of CreateMethodProperty with DefineMethodProperty (#3279)
1 parent 24eed9a commit 6ec325c

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

spec.html

+1-24
Original file line numberDiff line numberDiff line change
@@ -6117,29 +6117,6 @@ <h1>
61176117
</emu-note>
61186118
</emu-clause>
61196119

6120-
<emu-clause id="sec-createmethodproperty" type="abstract operation">
6121-
<h1>
6122-
CreateMethodProperty (
6123-
_O_: an Object,
6124-
_P_: a property key,
6125-
_V_: an ECMAScript language value,
6126-
): ~unused~
6127-
</h1>
6128-
<dl class="header">
6129-
<dt>description</dt>
6130-
<dd>It is used to create a new own property of an ordinary object.</dd>
6131-
</dl>
6132-
<emu-alg>
6133-
1. Assert: _O_ is an ordinary, extensible object with no non-configurable properties.
6134-
1. Let _newDesc_ be the PropertyDescriptor { [[Value]]: _V_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
6135-
1. Perform ! DefinePropertyOrThrow(_O_, _P_, _newDesc_).
6136-
1. Return ~unused~.
6137-
</emu-alg>
6138-
<emu-note>
6139-
<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>
6140-
</emu-note>
6141-
</emu-clause>
6142-
61436120
<emu-clause id="sec-createdatapropertyorthrow" type="abstract operation">
61446121
<h1>
61456122
CreateDataPropertyOrThrow (
@@ -24956,7 +24933,7 @@ <h1>
2495624933
1. Perform SetFunctionName(_F_, _className_).
2495724934
1. Perform MakeConstructor(_F_, *false*, _proto_).
2495824935
1. If |ClassHeritage| is present, set _F_.[[ConstructorKind]] to ~derived~.
24959-
1. Perform CreateMethodProperty(_proto_, *"constructor"*, _F_).
24936+
1. Perform ! DefineMethodProperty(_proto_, *"constructor"*, _F_, *false*).
2496024937
1. If |ClassBody| is not present, let _elements_ be a new empty List.
2496124938
1. Else, let _elements_ be NonConstructorElements of |ClassBody|.
2496224939
1. Let _instancePrivateMethods_ be a new empty List.

0 commit comments

Comments
 (0)