diff --git a/spec.html b/spec.html index 0ae2a92a82a..207cd51629e 100644 --- a/spec.html +++ b/spec.html @@ -41355,6 +41355,7 @@

Array.prototype.sort ( _comparator_ )

1. [id="step-array-sort-comparefn"] If _comparator_ is not *undefined* and IsCallable(_comparator_) is *false*, throw a *TypeError* exception. 1. Let _obj_ be ? ToObject(*this* value). 1. [id="step-array-sort-len"] Let _length_ be ? LengthOfArrayLike(_obj_). + 1. If _length_ ≤ 1, return _obj_. 1. Let _sortCompare_ be a new Abstract Closure with parameters (_x_, _y_) that captures _comparator_ and performs the following steps when called: 1. Return ? CompareArrayElements(_x_, _y_, _comparator_). 1. [id="step-array-sortindexedproperties"] Let _sortedList_ be ? SortIndexedProperties(_obj_, _length_, _sortCompare_, ~skip-holes~).