Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Set/Symbol.species/symbol-species.js

raw
1 // Copyright 2015 Cubane Canada, Inc. All rights reserved.
2 // See LICENSE for details.
3
4 /*---
5 info: |
6 Set has a property at `Symbol.species`
7 esid: sec-get-set-@@species
8 es6id: 23.2.2.2
9 author: Sam Mikes
10 description: Set[Symbol.species] exists per spec
11 includes: [propertyHelper.js]
12 features: [Symbol.species]
13 ---*/
14
15 var desc = Object.getOwnPropertyDescriptor(Set, Symbol.species);
16
17 assert.sameValue(desc.set, undefined);
18 assert.sameValue(typeof desc.get, 'function');
19
20 verifyNotWritable(Set, Symbol.species, Symbol.species);
21 verifyNotEnumerable(Set, Symbol.species);
22 verifyConfigurable(Set, Symbol.species);