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

Unified Diff: src/harmony-tostring.js

Issue 1100673002: Wrap harmony implementations in functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/harmony-spread.js ('k') | src/harmony-typedarray.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/harmony-tostring.js
diff --git a/src/harmony-tostring.js b/src/harmony-tostring.js
index 89a314c5081e10a5c84512a058921a947e80a29b..1ecfb263935bf98025645afc679f35d15a88c4a0 100644
--- a/src/harmony-tostring.js
+++ b/src/harmony-tostring.js
@@ -2,15 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+(function() {
+
"use strict";
-function HarmonyToStringExtendSymbolPrototype() {
- %CheckIsBootstrapping();
+%CheckIsBootstrapping();
+
+var GlobalSymbol = global.Symbol;
- InstallConstants(global.Symbol, [
- // TODO(dslomov, caitp): Move to symbol.js when shipping
- "toStringTag", symbolToStringTag
- ]);
-}
+InstallConstants(GlobalSymbol, [
+ // TODO(dslomov, caitp): Move to symbol.js when shipping
+ "toStringTag", symbolToStringTag
+]);
-HarmonyToStringExtendSymbolPrototype();
+})();
« no previous file with comments | « src/harmony-spread.js ('k') | src/harmony-typedarray.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698