Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Map/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 Map has a property at `Symbol.species`
7 esid: sec-get-map-@@species
8 es6id: 23.1.2.2
9 author: Sam Mikes
10 description: Map[Symbol.species] exists per spec
11 includes: [propertyHelper.js]
12 features: [Symbol.species]
13 ---*/
14
15 var desc = Object.getOwnPropertyDescriptor(Map, Symbol.species);
16
17 assert.sameValue(desc.set, undefined);
18 assert.sameValue(typeof desc.get, 'function');
19
20 verifyNotWritable(Map, Symbol.species, Symbol.species);
21 verifyNotEnumerable(Map, Symbol.species);
22 verifyConfigurable(Map, Symbol.species);