Debian Codegraph @

js/src/tests/test262/built-ins/Promise/promise.js

raw
1 // Copyright 2019 Aleksey Shvayka. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-promise-constructor
5 description: >
6 Property descriptor of Promise
7 info: |
8 25.6.3 The Promise Constructor
9
10 * is the initial value of the Promise property of the global object.
11
12 17 ECMAScript Standard Built-in Objects
13
14 Every other data property described in clauses 18 through 26 and in Annex B.2
15 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
16 [[Configurable]]: true } unless otherwise specified.
17 includes: [propertyHelper.js]
18 ---*/
19
20 verifyProperty(this, 'Promise', {
21 value: Promise,
22 writable: true,
23 enumerable: false,
24 configurable: true,
25 });
26
27 reportCompare(0, 0);