Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Promise/Symbol.species/prop-desc.js

raw
1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 es6id: 25.4.4.6
5 description: Promise `Symbol.species` property
6 info: |
7 Promise[@@species] is an accessor property whose set accessor function is
8 undefined.
9
10 ES6 Section 17:
11
12 Every accessor property described in clauses 18 through 26 and in Annex B.2
13 has the attributes {[[Enumerable]]: false, [[Configurable]]: true } unless
14 otherwise specified.
15 features: [Symbol.species]
16 includes: [propertyHelper.js]
17 ---*/
18
19 var desc = Object.getOwnPropertyDescriptor(Promise, Symbol.species);
20
21 assert.sameValue(desc.set, undefined);
22 assert.sameValue(typeof desc.get, 'function');
23
24 verifyNotEnumerable(Promise, Symbol.species);
25 verifyConfigurable(Promise, Symbol.species);