Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: src/js/collection-iterator.js

Issue 1404943002: Use import/export for more functions (instead of js builtins object). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/js/collection.js ('k') | src/js/date.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+});
})
« no previous file with comments | « src/js/collection.js ('k') | src/js/date.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698