Debian Codegraph @

js/src/tests/test262/built-ins/Array/from/Array.from_arity.js

raw
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 description: >
7 The length property of the Array.from method is 1.
8 info: |
9 22.1.2.1 Array.from ( items [ , mapfn [ , thisArg ] ] )
10
11 ...
12
13 The length property of the from method is 1.
14 includes: [propertyHelper.js]
15 ---*/
16
17 verifyProperty(Array.from, "length", {
18 value: 1,
19 writable: false,
20 enumerable: false,
21 configurable: true
22 });
23
24 reportCompare(0, 0);