From b6f03a834bb7bd3d29b93a50f0d6165741d10a10 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Wed, 10 Jul 2024 18:58:40 -0600 Subject: [PATCH] Editorial: use conventional notation for referring to types in Table 4 --- spec.html | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/spec.html b/spec.html index 9eb1d1153d..0249697db7 100644 --- a/spec.html +++ b/spec.html @@ -2911,7 +2911,7 @@

Object Internal Methods and Internal Slots

[[GetPrototypeOf]] - ( ) Object | Null + ( ) an Object or *null* Determine the object that provides inherited properties for this object. A *null* value indicates that there are no inherited properties. @@ -2922,7 +2922,7 @@

Object Internal Methods and Internal Slots

[[SetPrototypeOf]] - (Object | Null) Boolean + (an Object or *null*) a Boolean Associate this object with another object that provides inherited properties. Passing *null* indicates that there are no inherited properties. Returns *true* indicating that the operation was completed successfully or *false* indicating that the operation was not successful. @@ -2933,7 +2933,7 @@

Object Internal Methods and Internal Slots

[[IsExtensible]] - ( ) Boolean + ( ) a Boolean Determine whether it is permitted to add additional properties to this object. @@ -2944,7 +2944,7 @@

Object Internal Methods and Internal Slots

[[PreventExtensions]] - ( ) Boolean + ( ) a Boolean Control whether new properties may be added to this object. Returns *true* if the operation was successful or *false* if the operation was unsuccessful. @@ -2955,10 +2955,10 @@

Object Internal Methods and Internal Slots

[[GetOwnProperty]] - (_propertyKey_) Undefined | Property Descriptor + (a property key) a Property Descriptor or *undefined* - Return a Property Descriptor for the own property of this object whose key is _propertyKey_, or *undefined* if no such property exists. + Return a Property Descriptor for the own property of this object whose key is the passed property key, or *undefined* if no such property exists. @@ -2966,10 +2966,10 @@

Object Internal Methods and Internal Slots

[[DefineOwnProperty]] - (_propertyKey_, _PropertyDescriptor_) Boolean + (a property key, a Property Descriptor) a Boolean - Create or alter the own property, whose key is _propertyKey_, to have the state described by _PropertyDescriptor_. Return *true* if that property was successfully created/updated or *false* if the property could not be created or updated. + Create or alter the own property, whose key is the passed property key, to have the state described by the passed Property Descriptor. Return *true* if that property was successfully created/updated or *false* if the property could not be created or updated. @@ -2977,10 +2977,10 @@

Object Internal Methods and Internal Slots

[[HasProperty]] - (_propertyKey_) Boolean + (a property key) a Boolean - Return a Boolean value indicating whether this object already has either an own or inherited property whose key is _propertyKey_. + Return a Boolean value indicating whether this object already has either an own or inherited property whose key is the passed property key. @@ -2988,10 +2988,10 @@

Object Internal Methods and Internal Slots

[[Get]] - (_propertyKey_, _Receiver_) any + (a property key, an ECMAScript language value) an ECMAScript language value - Return the value of the property whose key is _propertyKey_ from this object. If any ECMAScript code must be executed to retrieve the property value, _Receiver_ is used as the *this* value when evaluating the code. + Return the value of the property of this object whose key is the passed property key. If any ECMAScript code must be executed to retrieve the property value, the value passed as the second parameter is used as the *this* value when evaluating the code. @@ -2999,10 +2999,10 @@

Object Internal Methods and Internal Slots

[[Set]] - (_propertyKey_, _value_, _Receiver_) Boolean + (a property key, an ECMAScript Language value, an ECMAScript language value) a Boolean - Set the value of the property whose key is _propertyKey_ to _value_. If any ECMAScript code must be executed to set the property value, _Receiver_ is used as the *this* value when evaluating the code. Returns *true* if the property value was set or *false* if it could not be set. + Set the value of the property whose key is the passed property key to the value passed as the second parameter. If any ECMAScript code must be executed to retrieve the property value, the value passed as the third parameter is used as the *this* value when evaluating the code. Returns *true* if the property value was set or *false* if it could not be set. @@ -3010,10 +3010,10 @@

Object Internal Methods and Internal Slots

[[Delete]] - (_propertyKey_) Boolean + (a property key) a Boolean - Remove the own property whose key is _propertyKey_ from this object. Return *false* if the property was not deleted and is still present. Return *true* if the property was deleted or is not present. + Remove the own property from this object whose key is the passed property key. Return *false* if the property was not deleted and is still present. Return *true* if the property was deleted or is not present. @@ -3021,7 +3021,7 @@

Object Internal Methods and Internal Slots

[[OwnPropertyKeys]] - ( ) List of property keys + ( ) a List of property keys Return a List whose elements are all of the own property keys for the object. @@ -3050,7 +3050,7 @@

Object Internal Methods and Internal Slots

[[Call]] - (any, a List of any) any + (an ECMAScript language value, a List of ECMAScript language values) an ECMAScript language value Executes code associated with this object. Invoked via a function call expression. The arguments to the internal method are a *this* value and a List whose elements are the arguments passed to the function by a call expression. Objects that implement this internal method are callable. @@ -3061,7 +3061,7 @@

Object Internal Methods and Internal Slots

[[Construct]] - (a List of any, Object) Object + (a List of ECMAScript language values, an Object) an Object Creates an object. Invoked via the `new` operator or a `super` call. The first argument to the internal method is a List whose elements are the arguments of the constructor invocation or the `super` call. The second argument is the object to which the `new` operator was initially applied. Objects that implement this internal method are called constructors. A function object is not necessarily a constructor and such non-constructor function objects do not have a [[Construct]] internal method.