Index: src/collection.js |
diff --git a/src/collection.js b/src/collection.js |
index e5fc0b33c8813a8071b85871d59166eca6d76eee..5e4421eb1072448a186f47eb85f909cb60bdf6bb 100644 |
--- a/src/collection.js |
+++ b/src/collection.js |
@@ -12,35 +12,6 @@ var $Set = global.Set; |
var $Map = global.Map; |
-// TODO(arv): Move these general functions to v8natives.js when Map and Set are |
-// no longer experimental. |
- |
- |
-// 7.4.1 CheckIterable ( obj ) |
-function ToIterable(obj) { |
- if (!IS_SPEC_OBJECT(obj)) { |
- return UNDEFINED; |
- } |
- return obj[symbolIterator]; |
-} |
- |
- |
-// 7.4.2 GetIterator ( obj, method ) |
-function GetIterator(obj, method) { |
- if (IS_UNDEFINED(method)) { |
- method = ToIterable(obj); |
- } |
- if (!IS_SPEC_FUNCTION(method)) { |
- throw MakeTypeError('not_iterable', [obj]); |
- } |
- var iterator = %_CallFunction(obj, method); |
- if (!IS_SPEC_OBJECT(iterator)) { |
- throw MakeTypeError('not_an_iterator', [iterator]); |
- } |
- return iterator; |
-} |
- |
- |
// ------------------------------------------------------------------- |
// Harmony Set |