diff --git a/spec.html b/spec.html index 3711ac6490..890b049233 100644 --- a/spec.html +++ b/spec.html @@ -6117,29 +6117,6 @@

- -

- CreateMethodProperty ( - _O_: an Object, - _P_: a property key, - _V_: an ECMAScript language value, - ): ~unused~ -

-
-
description
-
It is used to create a new own property of an ordinary object.
-
- - 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~. - - -

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.

-
-
-

CreateDataPropertyOrThrow ( @@ -24956,7 +24933,7 @@

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.