- 1. Let _len_ be the number of elements of _items_.
+ 1. Let _len_ be the number of elements in _items_.
1. Let _lenNumber_ be 𝔽(_len_).
1. Let _C_ be the *this* value.
1. If IsConstructor(_C_) is *true*, then
@@ -37770,7 +37770,7 @@ Array.prototype.push ( ..._items_ )
1. Let _O_ be ? ToObject(*this* value).
1. Let _len_ be ? LengthOfArrayLike(_O_).
- 1. Let _argCount_ be the number of elements of _items_.
+ 1. Let _argCount_ be the number of elements in _items_.
1. If _len_ + _argCount_ > 253 - 1, throw a *TypeError* exception.
1. For each element _E_ of _items_, do
1. Perform ? Set(_O_, ! ToString(𝔽(_len_)), _E_, *true*).
@@ -38061,7 +38061,7 @@
1. Let _kValue_ be ? Get(_obj_, _Pk_).
1. Append _kValue_ to _items_.
1. Set _k_ to _k_ + 1.
- 1. Let _itemCount_ be the number of elements of _items_.
+ 1. Let _itemCount_ be the number of elements in _items_.
1. [id="step-array-sort"] Sort _items_ using an implementation-defined sequence of calls to _SortCompare_. If any such call returns an abrupt completion, stop before performing any further calls to _SortCompare_ and return that Completion Record.
1. Let _j_ be 0.
1. Repeat, while _j_ < _itemCount_,
@@ -38126,7 +38126,7 @@ Array.prototype.splice ( _start_, _deleteCount_, ..._items_ )
1. If _relativeStart_ is -∞, let _actualStart_ be 0.
1. Else if _relativeStart_ < 0, let _actualStart_ be max(_len_ + _relativeStart_, 0).
1. Else, let _actualStart_ be min(_relativeStart_, _len_).
- 1. Let _itemCount_ be the number of elements of _items_.
+ 1. Let _itemCount_ be the number of elements in _items_.
1. If _start_ is not present, then
1. Let _actualDeleteCount_ be 0.
1. Else if _deleteCount_ is not present, then
@@ -38238,7 +38238,7 @@ Array.prototype.unshift ( ..._items_ )
1. Let _O_ be ? ToObject(*this* value).
1. Let _len_ be ? LengthOfArrayLike(_O_).
- 1. Let _argCount_ be the number of elements of _items_.
+ 1. Let _argCount_ be the number of elements in _items_.
1. If _argCount_ > 0, then
1. If _len_ + _argCount_ > 253 - 1, throw a *TypeError* exception.
1. Let _k_ be _len_.
@@ -38652,7 +38652,7 @@ %TypedArray%.from ( _source_ [ , _mapfn_ [ , _thisArg_ ] ] )
1. Let _usingIterator_ be ? GetMethod(_source_, @@iterator).
1. If _usingIterator_ is not *undefined*, then
1. Let _values_ be ? IterableToList(_source_, _usingIterator_).
- 1. Let _len_ be the number of elements of _values_.
+ 1. Let _len_ be the number of elements in _values_.
1. Let _targetObj_ be ? TypedArrayCreate(_C_, « 𝔽(_len_) »).
1. Let _k_ be 0.
1. Repeat, while _k_ < _len_,
@@ -38687,7 +38687,7 @@ %TypedArray%.from ( _source_ [ , _mapfn_ [ , _thisArg_ ] ] )
%TypedArray%.of ( ..._items_ )
This method performs the following steps when called:
- 1. Let _len_ be the number of elements of _items_.
+ 1. Let _len_ be the number of elements in _items_.
1. Let _C_ be the *this* value.
1. If IsConstructor(_C_) is *false*, throw a *TypeError* exception.
1. Let _newObj_ be ? TypedArrayCreate(_C_, « 𝔽(_len_) »).
@@ -39649,7 +39649,7 @@ _TypedArray_ ( ..._args_ )
1. If NewTarget is *undefined*, throw a *TypeError* exception.
1. Let _constructorName_ be the String value of the Constructor Name value specified in for this TypedArray constructor.
1. Let _proto_ be "%TypedArray.prototype%"
.
- 1. Let _numberOfArgs_ be the number of elements of _args_.
+ 1. Let _numberOfArgs_ be the number of elements in _args_.
1. If _numberOfArgs_ = 0, then
1. Return ? AllocateTypedArray(_constructorName_, NewTarget, _proto_, 0).
1. Else,
@@ -39793,7 +39793,7 @@
- 1. Let _len_ be the number of elements of _values_.
+ 1. Let _len_ be the number of elements in _values_.
1. Perform ? AllocateTypedArrayBuffer(_O_, _len_).
1. Let _k_ be 0.
1. Repeat, while _k_ < _len_,
@@ -39911,7 +39911,7 @@ Keyed Collections
Map Objects
Maps are collections of key/value pairs where both the keys and values may be arbitrary ECMAScript language values. A distinct key value may only occur in one key/value pair within the Map's collection. Distinct key values are discriminated using the SameValueZero comparison algorithm.
- Maps must be implemented using either hash tables or other mechanisms that, on average, provide access times that are sublinear on the number of elements of the collection. The data structure used in this specification is only intended to describe the required observable semantics of Maps. It is not intended to be a viable implementation model.
+ Maps must be implemented using either hash tables or other mechanisms that, on average, provide access times that are sublinear on the number of elements in the collection. The data structure used in this specification is only intended to describe the required observable semantics of Maps. It is not intended to be a viable implementation model.
The Map Constructor
@@ -40070,15 +40070,15 @@ Map.prototype.forEach ( _callbackfn_ [ , _thisArg_ ] )
1. Perform ? RequireInternalSlot(_M_, [[MapData]]).
1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception.
1. Let _entries_ be the List that is _M_.[[MapData]].
- 1. Let _numEntries_ be the number of elements of _entries_.
+ 1. Let _numEntries_ be the number of elements in _entries_.
1. Let _index_ be 0.
1. Repeat, while _index_ < _numEntries_,
1. Let _e_ be the Record { [[Key]], [[Value]] } that is the value of _entries_[_index_].
1. Set _index_ to _index_ + 1.
1. If _e_.[[Key]] is not ~empty~, then
1. Perform ? Call(_callbackfn_, _thisArg_, « _e_.[[Value]], _e_.[[Key]], _M_ »).
- 1. NOTE: The number of elements of _entries_ may have increased during execution of _callbackfn_.
- 1. Set _numEntries_ to the number of elements of _entries_.
+ 1. NOTE: The number of elements in _entries_ may have increased during execution of _callbackfn_.
+ 1. Set _numEntries_ to the number of elements in _entries_.
1. Return *undefined*.
@@ -40202,7 +40202,7 @@
1. Let _closure_ be a new Abstract Closure with no parameters that captures _map_ and _kind_ and performs the following steps when called:
1. Let _entries_ be the List that is _map_.[[MapData]].
1. Let _index_ be 0.
- 1. Let _numEntries_ be the number of elements of _entries_.
+ 1. Let _numEntries_ be the number of elements in _entries_.
1. Repeat, while _index_ < _numEntries_,
1. Let _e_ be the Record { [[Key]], [[Value]] } that is the value of _entries_[_index_].
1. Set _index_ to _index_ + 1.
@@ -40213,8 +40213,8 @@
1. Assert: _kind_ is ~key+value~.
1. Let _result_ be CreateArrayFromList(« _e_.[[Key]], _e_.[[Value]] »).
1. Perform ? GeneratorYield(CreateIterResultObject(_result_, *false*)).
- 1. NOTE: The number of elements of _entries_ may have increased while execution of this abstract operation was paused by Yield.
- 1. Set _numEntries_ to the number of elements of _entries_.
+ 1. NOTE: The number of elements in _entries_ may have increased while execution of this abstract operation was paused by Yield.
+ 1. Set _numEntries_ to the number of elements in _entries_.
1. Return *undefined*.
1. Return CreateIteratorFromClosure(_closure_, *"%MapIteratorPrototype%"*, %MapIteratorPrototype%).
@@ -40249,7 +40249,7 @@ %MapIteratorPrototype% [ @@toStringTag ]
Set Objects
Set objects are collections of ECMAScript language values. A distinct value may only occur once as an element of a Set's collection. Distinct values are discriminated using the SameValueZero comparison algorithm.
- Set objects must be implemented using either hash tables or other mechanisms that, on average, provide access times that are sublinear on the number of elements of the collection. The data structure used in this specification is only intended to describe the required observable semantics of Set objects. It is not intended to be a viable implementation model.
+ Set objects must be implemented using either hash tables or other mechanisms that, on average, provide access times that are sublinear on the number of elements in the collection. The data structure used in this specification is only intended to describe the required observable semantics of Set objects. It is not intended to be a viable implementation model.
The Set Constructor
@@ -40395,15 +40395,15 @@ Set.prototype.forEach ( _callbackfn_ [ , _thisArg_ ] )
1. Perform ? RequireInternalSlot(_S_, [[SetData]]).
1. If IsCallable(_callbackfn_) is *false*, throw a *TypeError* exception.
1. Let _entries_ be the List that is _S_.[[SetData]].
- 1. Let _numEntries_ be the number of elements of _entries_.
+ 1. Let _numEntries_ be the number of elements in _entries_.
1. Let _index_ be 0.
1. Repeat, while _index_ < _numEntries_,
1. Let _e_ be _entries_[_index_].
1. Set _index_ to _index_ + 1.
1. If _e_ is not ~empty~, then
1. Perform ? Call(_callbackfn_, _thisArg_, « _e_, _e_, _S_ »).
- 1. NOTE: The number of elements of _entries_ may have increased during execution of _callbackfn_.
- 1. Set _numEntries_ to the number of elements of _entries_.
+ 1. NOTE: The number of elements in _entries_ may have increased during execution of _callbackfn_.
+ 1. Set _numEntries_ to the number of elements in _entries_.
1. Return *undefined*.
@@ -40497,7 +40497,7 @@
1. Let _closure_ be a new Abstract Closure with no parameters that captures _set_ and _kind_ and performs the following steps when called:
1. Let _index_ be 0.
1. Let _entries_ be the List that is _set_.[[SetData]].
- 1. Let _numEntries_ be the number of elements of _entries_.
+ 1. Let _numEntries_ be the number of elements in _entries_.
1. Repeat, while _index_ < _numEntries_,
1. Let _e_ be _entries_[_index_].
1. Set _index_ to _index_ + 1.
@@ -40508,8 +40508,8 @@
1. Else,
1. Assert: _kind_ is ~value~.
1. Perform ? GeneratorYield(CreateIterResultObject(_e_, *false*)).
- 1. NOTE: The number of elements of _entries_ may have increased while execution of this abstract operation was paused by Yield.
- 1. Set _numEntries_ to the number of elements of _entries_.
+ 1. NOTE: The number of elements in _entries_ may have increased while execution of this abstract operation was paused by Yield.
+ 1. Set _numEntries_ to the number of elements in _entries_.
1. Return *undefined*.
1. Return CreateIteratorFromClosure(_closure_, *"%SetIteratorPrototype%"*, %SetIteratorPrototype%).
@@ -40694,7 +40694,7 @@ Properties of WeakMap Instances
WeakSet Objects
WeakSets are collections of objects. A distinct object may only occur once as an element of a WeakSet's collection. A WeakSet may be queried to see if it contains a specific object, but no mechanism is provided for enumerating the objects it holds. In certain conditions, objects which are not live are removed as WeakSet elements, as described in .
An implementation may impose an arbitrarily determined latency between the time an object contained in a WeakSet becomes inaccessible and the time when the object is removed from the WeakSet. If this latency was observable to ECMAScript program, it would be a source of indeterminacy that could impact program execution. For that reason, an ECMAScript implementation must not provide any means to determine if a WeakSet contains a particular object that does not require the observer to present the observed object.
- WeakSets must be implemented using either hash tables or other mechanisms that, on average, provide access times that are sublinear on the number of elements of the collection. The data structure used in this specification is only intended to describe the required observable semantics of WeakSets. It is not intended to be a viable implementation model.
+ WeakSets must be implemented using either hash tables or other mechanisms that, on average, provide access times that are sublinear on the number of elements in the collection. The data structure used in this specification is only intended to describe the required observable semantics of WeakSets. It is not intended to be a viable implementation model.
See the NOTE in .
@@ -41050,7 +41050,7 @@
1. Append _readEvent_ to _eventList_.
1. Append Chosen Value Record { [[Event]]: _readEvent_, [[ChosenValue]]: _rawValue_ } to _execution_.[[ChosenValues]].
1. Else, let _rawValue_ be a List whose elements are bytes from _block_ at indices in the interval from _byteIndex_ (inclusive) to _byteIndex_ + _elementSize_ (exclusive).
- 1. Assert: The number of elements of _rawValue_ is _elementSize_.
+ 1. Assert: The number of elements in _rawValue_ is _elementSize_.
1. If _isLittleEndian_ is not present, set _isLittleEndian_ to the value of the [[LittleEndian]] field of the surrounding agent's Agent Record.
1. Return RawBytesToNumeric(_type_, _rawValue_, _isLittleEndian_).
@@ -46515,8 +46515,8 @@