mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
By aligning Array.prototype.sort with the spec, this removes the direct invocation of CompareArrayElements from array_merge_sort. This opens the door for TypedArray to use SortIndexedProperties as well because now array_merge_sort does not assume what kind of array it is invoked with. Further, this addresses a FIXME to avoid an extra JS heap allocation.
14 KiB
14 KiB