| 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.1 |
| 5 |
description: Promise.all `length` property |
| 6 |
info: | |
| 7 |
ES6 Section 17: |
| 8 |
Every built-in Function object, including constructors, has a length |
| 9 |
property whose value is an integer. Unless otherwise specified, this value |
| 10 |
is equal to the largest number of named arguments shown in the subclause |
| 11 |
headings for the function description, including optional parameters. |
| 12 |
|
| 13 |
[...] |
| 14 |
|
| 15 |
Unless otherwise specified, the length property of a built-in Function |
| 16 |
object has the attributes { [[Writable]]: false, [[Enumerable]]: false, |
| 17 |
[[Configurable]]: true }. |
| 18 |
includes: [propertyHelper.js] |
| 19 |
---*/ |
| 20 |
|
| 21 |
assert.sameValue(Promise.all.length, 1); |
| 22 |
|
| 23 |
verifyNotEnumerable(Promise.all, 'length'); |
| 24 |
verifyNotWritable(Promise.all, 'length'); |
| 25 |
verifyConfigurable(Promise.all, 'length'); |