Index: src/collection.js |
diff --git a/src/collection.js b/src/collection.js |
index b201d57bc5ceef6883305a1558df210fdc3e7b8a..fefc7a0499db3c71ea1585ab2eb5a8767af755f9 100644 |
--- a/src/collection.js |
+++ b/src/collection.js |
@@ -106,12 +106,8 @@ function SetForEach(f, receiver) { |
var iterator = %SetCreateIterator(this, ITERATOR_KIND_VALUES); |
var entry; |
- try { |
- while (!(entry = %SetIteratorNext(iterator)).done) { |
- %_CallFunction(receiver, entry.value, entry.value, this, f); |
- } |
- } finally { |
- %SetIteratorClose(iterator); |
+ while (!(entry = %SetIteratorNext(iterator)).done) { |
+ %_CallFunction(receiver, entry.value, entry.value, this, f); |
} |
} |
@@ -219,12 +215,8 @@ function MapForEach(f, receiver) { |
var iterator = %MapCreateIterator(this, ITERATOR_KIND_ENTRIES); |
var entry; |
- try { |
- while (!(entry = %MapIteratorNext(iterator)).done) { |
- %_CallFunction(receiver, entry.value[1], entry.value[0], this, f); |
- } |
- } finally { |
- %MapIteratorClose(iterator); |
+ while (!(entry = %MapIteratorNext(iterator)).done) { |
+ %_CallFunction(receiver, entry.value[1], entry.value[0], this, f); |
} |
} |