Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Array / fromAsync / name.js
blobe335122192716476a93a0bee69c635d48e106dc9
1 // Copyright (C) 2022 Igalia, S.L. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-array.fromasync
6 description: Value and property descriptor of Array.fromAsync.name
7 info: |
8   Every built-in function object, including constructors, has a *"name"*
9   property whose value is a String. Unless otherwise specified, this value is
10   the name that is given to the function in this specification. [...]
11   For functions that are specified as properties of objects, the name value is
12   the property name string used to access the function.
14   Unless otherwise specified, the *"name"* property of a built-in function
15   object has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*,
16   [[Configurable]]: true }.
17 includes: [propertyHelper.js]
18 features: [Array.fromAsync]
19 ---*/
21 verifyProperty(Array.fromAsync, "name", {
22   value: "fromAsync",
23   writable: false,
24   enumerable: false,
25   configurable: true,
26 });
28 reportCompare(0, 0);