| 1 |
// Copyright (C) 2015 André Bargull. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
es6id: 23.2.2.2 |
| 6 |
description: > |
| 7 |
get Set [ @@species ].length is 0. |
| 8 |
info: | |
| 9 |
get Set [ @@species ] |
| 10 |
|
| 11 |
17 ECMAScript Standard Built-in Objects: |
| 12 |
Every built-in Function object, including constructors, has a length |
| 13 |
property whose value is an integer. Unless otherwise specified, this |
| 14 |
value is equal to the largest number of named arguments shown in the |
| 15 |
subclause headings for the function description, including optional |
| 16 |
parameters. However, rest parameters shown using the form “...name” |
| 17 |
are not included in the default argument count. |
| 18 |
|
| 19 |
Unless otherwise specified, the length property of a built-in Function |
| 20 |
object has the attributes { [[Writable]]: false, [[Enumerable]]: false, |
| 21 |
[[Configurable]]: true }. |
| 22 |
includes: [propertyHelper.js] |
| 23 |
features: [Symbol.species] |
| 24 |
---*/ |
| 25 |
|
| 26 |
var desc = Object.getOwnPropertyDescriptor(Set, Symbol.species); |
| 27 |
|
| 28 |
assert.sameValue(desc.get.length, 0); |
| 29 |
|
| 30 |
verifyNotEnumerable(desc.get, "length"); |
| 31 |
verifyNotWritable(desc.get, "length"); |
| 32 |
verifyConfigurable(desc.get, "length"); |