Skip to content
Snippets Groups Projects
Commit e06ede9a authored by Brian Terlson's avatar Brian Terlson
Browse files

Merge pull request #401 from anba/remove_invalid_array_from_test

Remove invalid Array.from test
parents 8870e7bf da6c9b96
No related branches found
No related tags found
No related merge requests found
// 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 + ".");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment