mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-10 09:02:44 +02: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