Philip Chimento 7c9a885b79 Array.fromAsync: Boilerplate tests
Here are some of the standard tests for property metadata of the
Array.fromAsync property and for the built-in function object. These don't
require doing anything asynchronously, so can be considered separately
from the Async Helpers RFC.
2022-12-17 13:18:46 -08:00

22 lines
689 B
JavaScript

// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.fromasync
description: Type and property descriptor of Array.fromAsync
info: |
Every other data property described in clauses 19 through 28 and in Annex B.2
has the attributes { [[Writable]]: *true*, [[Enumerable]]: *false*,
[[Configurable]]: *true* } unless otherwise specified.
includes: [propertyHelper.js]
features: [Array.fromAsync]
---*/
assert.sameValue(typeof Array.fromAsync, "function", "Array.fromAsync is callable");
verifyProperty(Array, 'fromAsync', {
writable: true,
enumerable: false,
configurable: true,
});