diff --git a/spec.html b/spec.html index afe9058793..160039d56c 100644 --- a/spec.html +++ b/spec.html @@ -37934,7 +37934,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 _insertCount_ be the number of elements in _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 @@ -37942,7 +37942,7 @@

Array.prototype.splice ( _start_, _deleteCount_, ..._items_ )

1. Else, 1. Let _dc_ be ? ToIntegerOrInfinity(_deleteCount_). 1. Let _actualDeleteCount_ be the result of clamping _dc_ between 0 and _len_ - _actualStart_. - 1. If _len_ + _insertCount_ - _actualDeleteCount_ > 253 - 1, throw a *TypeError* exception. + 1. If _len_ + _itemCount_ - _actualDeleteCount_ > 253 - 1, throw a *TypeError* exception. 1. Let _A_ be ? ArraySpeciesCreate(_O_, _actualDeleteCount_). 1. Let _k_ be 0. 1. Repeat, while _k_ < _actualDeleteCount_, @@ -37952,7 +37952,6 @@

Array.prototype.splice ( _start_, _deleteCount_, ..._items_ )

1. Perform ? CreateDataPropertyOrThrow(_A_, ! ToString(𝔽(_k_)), _fromValue_). 1. Set _k_ to _k_ + 1. 1. Perform ? Set(_A_, *"length"*, 𝔽(_actualDeleteCount_), *true*). - 1. Let _itemCount_ be the number of elements in _items_. 1. If _itemCount_ < _actualDeleteCount_, then 1. Set _k_ to _actualStart_. 1. Repeat, while _k_ < (_len_ - _actualDeleteCount_),