1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 esid: sec-%typedarray%.from
5 description: Returns error produced by interpreting length property as a length
7 22.2.2.1 %TypedArray%.from ( source [ , mapfn [ , thisArg ] ] )
10 7. Let len be ? ToLength(? Get(arrayLike, "length")).
12 includes: [testTypedArray.js]
13 features: [TypedArray]
16 var arrayLike = { length: {} };
20 throw new Test262Error();
24 assert.throws(Test262Error, function() {
25 TypedArray.from(arrayLike);