Index: src/js/collection-iterator.js |
diff --git a/src/js/collection-iterator.js b/src/js/collection-iterator.js |
index 133219d4a5e87ae8a470525d27a1cfcc7b602e79..4367c66aa1cd1718e76f721de48398003cab8925 100644 |
--- a/src/js/collection-iterator.js |
+++ b/src/js/collection-iterator.js |
@@ -11,7 +11,9 @@ |
var GlobalMap = global.Map; |
var GlobalSet = global.Set; |
var iteratorSymbol = utils.ImportNow("iterator_symbol"); |
+var MapIterator = utils.ImportNow("MapIterator"); |
var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); |
+var SetIterator = utils.ImportNow("SetIterator"); |
// ------------------------------------------------------------------- |
@@ -65,7 +67,6 @@ function SetValues() { |
// ------------------------------------------------------------------- |
%SetCode(SetIterator, SetIteratorConstructor); |
-%FunctionSetPrototype(SetIterator, {__proto__: $iteratorPrototype}); |
%FunctionSetInstanceClassName(SetIterator, 'Set Iterator'); |
utils.InstallFunctions(SetIterator.prototype, DONT_ENUM, [ |
'next', SetIteratorNextJS |
@@ -144,7 +145,6 @@ function MapValues() { |
// ------------------------------------------------------------------- |
%SetCode(MapIterator, MapIteratorConstructor); |
-%FunctionSetPrototype(MapIterator, {__proto__: $iteratorPrototype}); |
%FunctionSetInstanceClassName(MapIterator, 'Map Iterator'); |
utils.InstallFunctions(MapIterator.prototype, DONT_ENUM, [ |
'next', MapIteratorNextJS |