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

Unified Diff: src/js/collection.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/arraybuffer.js ('k') | src/js/collection-iterator.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/collection.js
diff --git a/src/js/collection.js b/src/js/collection.js
index 8bf6ec3515baf2c2ebd2b4ead4c300671ea8064e..1ae9052017c5cbbbca1e6ba1ab84afcf8e835a54 100644
--- a/src/js/collection.js
+++ b/src/js/collection.js
@@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-var $getHash;
-var $getExistingHash;
-
(function(global, utils) {
"use strict";
@@ -462,10 +459,6 @@ utils.InstallFunctions(GlobalMap.prototype, DONT_ENUM, [
"forEach", MapForEach
]);
-// Expose to the global scope.
-$getHash = GetHash;
-$getExistingHash = GetExistingHash;
-
function MapFromArray(array) {
var map = new GlobalMap;
var length = array.length;
@@ -501,4 +494,9 @@ function SetFromArray(array) {
"set_from_array",SetFromArray,
]);
+utils.Export(function(to) {
+ to.GetExistingHash = GetExistingHash;
+ to.GetHash = GetHash;
+});
+
})
« no previous file with comments | « src/js/arraybuffer.js ('k') | src/js/collection-iterator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698