Index: src/collection.js |
diff --git a/src/collection.js b/src/collection.js |
index 94bda703578ea73829efda3a7db96705f614d54b..9b5716687bcc14ed06e628afd15de795b07c1a14 100644 |
--- a/src/collection.js |
+++ b/src/collection.js |
@@ -23,7 +23,7 @@ function SetConstructor(iterable) { |
var iter, adder; |
if (!IS_NULL_OR_UNDEFINED(iterable)) { |
- iter = GetIterator(ToObject(iterable)); |
+ iter = GetIterator(iterable); |
adder = this.add; |
if (!IS_SPEC_FUNCTION(adder)) { |
throw MakeTypeError('property_not_function', ['add', this]); |
@@ -163,7 +163,7 @@ function MapConstructor(iterable) { |
var iter, adder; |
if (!IS_NULL_OR_UNDEFINED(iterable)) { |
- iter = GetIterator(ToObject(iterable)); |
+ iter = GetIterator(iterable); |
adder = this.set; |
if (!IS_SPEC_FUNCTION(adder)) { |
throw MakeTypeError('property_not_function', ['set', this]); |