| // Copyright (C) 2015 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| description: Error invoking map function (traversed via iterator) |
| 6. If usingIterator is not undefined, then |
| vii. If mapping is true, then |
| 1. Let mappedValue be Call(mapfn, T, «nextValue, k»). |
| 2. If mappedValue is an abrupt completion, return |
| IteratorClose(iterator, mappedValue). |
| features: [Symbol.iterator] |
| throw new Test262Error(); |
| items[Symbol.iterator] = function() { |
| assert.throws(Test262Error, function() { |
| Array.from(items, mapFn); |
| assert.sameValue(closeCount, 1); |