mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Merge pull request #401 from anba/remove_invalid_array_from_test
Remove invalid Array.from test
This commit is contained in:
commit
e06ede9a65
@ -1,13 +0,0 @@
|
|||||||
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
|
||||||
// This code is governed by the license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
description: Passing array Buffer
|
|
||||||
es6id: 22.1.2.1
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var arrayBuffer = new ArrayBuffer([ 1, 2, 4, 8, 16, 32, 64, 128 ]);
|
|
||||||
var a = Array.from(arrayBuffer);
|
|
||||||
for (var j = 0; j < a.length; j++) {
|
|
||||||
assert.sameValue(a[j], arrayBuffer[j], "Elements mismatch at " + j + ".");
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user