summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Set/Symbol.species/symbol-species.js
blob: 8f80342ab90d52f3b69869bd7a8f0b93276d5a0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2015 Cubane Canada, Inc.  All rights reserved.
// See LICENSE for details.

/*---
esid: sec-get-set-@@species
description: Set[Symbol.species] exists per spec
info: |
  Set has a property at `Symbol.species`
author: Sam Mikes
includes: [propertyHelper.js]
features: [Symbol.species]
---*/

var desc = Object.getOwnPropertyDescriptor(Set, Symbol.species);

assert.sameValue(desc.set, undefined);
assert.sameValue(typeof desc.get, 'function');

verifyNotWritable(Set, Symbol.species, Symbol.species);
verifyNotEnumerable(Set, Symbol.species);
verifyConfigurable(Set, Symbol.species);

reportCompare(0, 0);