Index: src/js/collection-iterator.js |
diff --git a/src/js/collection-iterator.js b/src/js/collection-iterator.js |
index c799d6f9cd2585845248898169ae0f0a5f7898c0..133219d4a5e87ae8a470525d27a1cfcc7b602e79 100644 |
--- a/src/js/collection-iterator.js |
+++ b/src/js/collection-iterator.js |
@@ -2,11 +2,6 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-var $mapEntries; |
-var $mapIteratorNext; |
-var $setIteratorNext; |
-var $setValues; |
- |
(function(global, utils) { |
"use strict"; |
@@ -87,9 +82,6 @@ utils.InstallFunctions(GlobalSet.prototype, DONT_ENUM, [ |
%AddNamedProperty(GlobalSet.prototype, iteratorSymbol, SetValues, DONT_ENUM); |
-$setIteratorNext = SetIteratorNextJS; |
-$setValues = SetValues; |
- |
// ------------------------------------------------------------------- |
function MapIteratorConstructor(map, kind) { |
@@ -170,7 +162,14 @@ utils.InstallFunctions(GlobalMap.prototype, DONT_ENUM, [ |
%AddNamedProperty(GlobalMap.prototype, iteratorSymbol, MapEntries, DONT_ENUM); |
-$mapEntries = MapEntries; |
-$mapIteratorNext = MapIteratorNextJS; |
+// ------------------------------------------------------------------- |
+// Exports |
+ |
+utils.Export(function(to) { |
+ to.MapEntries = MapEntries; |
+ to.MapIteratorNext = MapIteratorNextJS; |
+ to.SetIteratorNext = SetIteratorNextJS; |
+ to.SetValues = SetValues; |
+}); |
}) |