mirror of
https://github.com/tc39/test262.git
synced 2025-05-03 22:40:28 +02:00
These tests are derived from the following files within the Google V8 project: test/mjsunit/harmony/array-fill.js test/mjsunit/harmony/array-find.js test/mjsunit/harmony/array-findindex.js test/mjsunit/harmony/array-from.js test/mjsunit/harmony/array-of.js
13 lines
451 B
JavaScript
13 lines
451 B
JavaScript
// Copyright (c) 2014 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
/*---
|
|
es6id: 22.1.2.1
|
|
description: >
|
|
The Array.from() method creates a new Array instance
|
|
from an array-like or iterable object.
|
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from
|
|
---*/
|
|
|
|
assert.sameValue(Array.from.length, 1);
|