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 accessing iterated value
7 22.2.2.1.1 Runtime Semantics: IterableToArrayLike( items )
9 2. If usingIterator is not undefined, then
11 d. Repeat, while next is not false
13 ii. If next is not false, then
14 1. Let nextValue be ? IteratorValue(next).
16 includes: [testTypedArray.js]
17 features: [Symbol.iterator, TypedArray]
21 iter[Symbol.iterator] = function() {
25 Object.defineProperty(result, 'value', {
27 throw new Test262Error();
36 assert.throws(Test262Error, function() {
37 TypedArray.from(iter);