Debian Codegraph @

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

raw
1 // |reftest| skip module -- source-phase-imports is not supported
2 // Copyright (C) 2024 Chengzhong Wu. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-properties-of-the-%abstractmodulesource%25-intrinsic-object
6 description: >
7 %AbstractModuleSource%.name property descriptor
8 info: |
9 The %AbstractModuleSource% intrinsic object has a "name" property whose value is "AbstractModuleSource".
10
11 Unless otherwise specified, the name property of a built-in function
12 object, if it exists, has the attributes { [[Writable]]: false,
13 [[Enumerable]]: false, [[Configurable]]: true }.
14 includes: [propertyHelper.js]
15 features: [source-phase-imports]
16 flags: [module]
17 ---*/
18
19 assert.sameValue(typeof $262.AbstractModuleSource, 'function');
20 verifyProperty($262.AbstractModuleSource, 'name', {
21 value: 'AbstractModuleSource',
22 writable: false,
23 enumerable: false,
24 configurable: true
25 });
26
27 reportCompare(0, 0);