Debian Codegraph @

js/src/tests/test262/built-ins/AsyncDisposableStack/name.js

raw
1 // |reftest| shell-option(--enable-explicit-resource-management) skip-if(!(this.hasOwnProperty('getBuildConfiguration')&&getBuildConfiguration('explicit-resource-management'))||!xulRuntime.shell) -- explicit-resource-management is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2023 Ron Buckton. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-asyncdisposablestack
7 description: AsyncDisposableStack.name property descriptor
8 info: |
9 AsyncDisposableStack ( )
10
11 17 ECMAScript Standard Built-in Objects
12
13 Every built-in function object, including constructors, that is not
14 identified as an anonymous function has a name property whose value
15 is a String. Unless otherwise specified, this value is the name that
16 is given to the function in this specification. For functions that
17 are specified as properties of objects, the name value is the
18 property name string used to access the function. [...]
19
20 Unless otherwise specified, the name property of a built-in function
21 object, if it exists, has the attributes { [[Writable]]: false,
22 [[Enumerable]]: false, [[Configurable]]: true }.
23 includes: [propertyHelper.js]
24 features: [explicit-resource-management]
25 ---*/
26
27 verifyProperty(AsyncDisposableStack, 'name', {
28 value: 'AsyncDisposableStack',
29 writable: false,
30 enumerable: false,
31 configurable: true
32 });
33
34 reportCompare(0, 0);