Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 60823eb

Browse files
committed
dont change array sort behaviour
1 parent a056bb3 commit 60823eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h1>Array.prototype.sort ( _comparefn_ )</h1>
4747
1. <ins>Let _itemCount_ be the number of elements in _sortedList_.</ins>
4848
1. <ins>Let _j_ be 0.</ins>
4949
1. <ins>Repeat, while _j_ &lt; _itemCount_,</ins>
50-
1. <ins>Perform ? CreateDataPropertyOrThrow(_obj_, ! ToString(𝔽(_j_)), _sortedList_[_j_]).</ins>
50+
1. <ins>Perform ? Set(_obj_, ! ToString(𝔽(_j_)), _sortedList_[_j_], true).</ins>
5151
1. <ins>Set _j_ to _j_ + 1.</ins>
5252
1. <ins>NOTE: The call to SortIndexedProperties in step <emu-xref href="#step-array-sortindexedproperties"></emu-xref> has the *skipHoles* parameter set to *true*. The remaining indexes are deleted to preserve the number of holes that were detected and excluded from the sort.</ins>
5353
1. <ins>Repeat, while _j_ &lt; _len_,</ins>

0 commit comments

Comments
 (0)