ladybird/Libraries/LibJS/Tests/builtins/Array
Luke Wilde 0eceee0a05 LibJS: Replace Array.fromAsync with a native JavaScript implementation
This allows us to use the bytecode implementation of await, which
correctly suspends execution contexts and handles completion
injections.

This gains us 4 test262 tests around mutating Array.fromAsync's
iterable whilst it's suspended as well.

This is also one step towards removing spin_until, which the
non-bytecode implementation of await uses.

```
Duration:
     -5.98s

Summary:
    Diff Tests:
        +4     -4 

Diff Tests:
    [...]/Array/fromAsync/asyncitems-array-add-to-singleton.js  -> 
    [...]/Array/fromAsync/asyncitems-array-add.js               -> 
    [...]/Array/fromAsync/asyncitems-array-mutate.js            -> 
    [...]/Array/fromAsync/asyncitems-array-remove.js            -> 
```
2025-11-30 11:54:54 +01:00
..
array-as-proxy-target.js LibJS: Skip prototype chain lookup in internal_set() for arrays 2025-05-23 14:51:32 +02:00
array-basic.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
array-index-from-string.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
array-length-setter.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
array-shrink-during-find-crash.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
array-simple-and-generic-storage-initialization.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
array-spread.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.from.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.fromAsync.js LibJS: Replace Array.fromAsync with a native JavaScript implementation 2025-11-30 11:54:54 +01:00
Array.isArray.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.of.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype-generic-functions.js Meta: Increase the line length enforced by prettier to 120 2025-10-31 19:55:50 -04:00
Array.prototype.at.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.concat.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.copyWithin.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.entries.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.every.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.fill.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.filter.js Meta: Increase the line length enforced by prettier to 120 2025-10-31 19:55:50 -04:00
Array.prototype.find.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.findIndex.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.findLast.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.findLastIndex.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.flat.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.flatMap.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.forEach.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.includes.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.indexOf.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.join.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.keys.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.lastIndexOf.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.map.js Meta: Increase the line length enforced by prettier to 120 2025-10-31 19:55:50 -04:00
Array.prototype.pop.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.push.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.reduce.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.reduceRight.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.reverse.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.shift.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.slice.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.some.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.sort.js Meta: Increase the line length enforced by prettier to 120 2025-10-31 19:55:50 -04:00
Array.prototype.splice.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.toLocaleString.js Meta: Increase the line length enforced by prettier to 120 2025-10-31 19:55:50 -04:00
Array.prototype.toReversed.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.toSorted.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.toSpliced.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.toString.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.unshift.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.values.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Array.prototype.with.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00