Debian Codegraph @

js/src/tests/test262/built-ins/Array/fromAsync/asyncitems-arraybuffer.js

raw
1 // |reftest| async
2 // Copyright (C) 2022 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-array.fromasync
7 description: >
8 Array.fromAsync doesn't special-case ArrayBuffer
9 includes: [asyncHelpers.js, compareArray.js]
10 flags: [async]
11 features: [Array.fromAsync]
12 ---*/
13
14 asyncTest(async function () {
15 const items = new ArrayBuffer(7);
16 const result = await Array.fromAsync(items);
17 assert.compareArray(result, []);
18 });