2 // Copyright (C) 2023 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 esid: sec-array.fromasync
8 Array.fromAsync returns a Promise that resolves to an Array in the normal case
10 1. Let _C_ be the *this* value.
12 3.e. If IsConstructor(_C_) is *true*, then
13 i. Let _A_ be ? Construct(_C_).
14 features: [Array.fromAsync]
16 includes: [asyncHelpers.js]
19 asyncTest(async function () {
20 const promise = Array.fromAsync([0, 1, 2]);
21 const array = await promise;
22 assert(Array.isArray(array), "Array.fromAsync returns a Promise that resolves to an Array");