| // Copyright (C) 2015 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| The iterator is closed when `Map.prototype.set` throws an error. |
| k. Let status be Call(adder, map, «k.[[value]], v.[[value]]»). |
| l. If status is an abrupt completion, return IteratorClose(iter, status). |
| features: [Symbol.iterator] |
| iterable[Symbol.iterator] = function() { |
| return { value: [], done: false }; |
| Map.prototype.set = function() { throw new Test262Error(); } |
| assert.throws(Test262Error, function() { |
| assert.sameValue(count, 1); |