| 1 |
// Copyright (c) 2014 the V8 project authors. All rights reserved. |
| 2 |
// Use of this source code is governed by a BSD-style license that can be |
| 3 |
// found in the LICENSE file. |
| 4 |
/*--- |
| 5 |
esid: sec-array.from |
| 6 |
es6id: 22.1.2.1 |
| 7 |
description: > |
| 8 |
The length property of the Array.from method is 1. |
| 9 |
info: | |
| 10 |
22.1.2.1 Array.from ( items [ , mapfn [ , thisArg ] ] ) |
| 11 |
|
| 12 |
... |
| 13 |
|
| 14 |
The length property of the from method is 1. |
| 15 |
includes: [propertyHelper.js] |
| 16 |
---*/ |
| 17 |
|
| 18 |
assert.sameValue(Array.from.length, 1); |
| 19 |
|
| 20 |
verifyNotEnumerable(Array.from, 'length'); |
| 21 |
verifyNotWritable(Array.from, 'length'); |
| 22 |
verifyConfigurable(Array.from, 'length'); |