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

Unified Diff: src/harmony-reflect.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-array-includes.js ('k') | src/harmony-regexp.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/harmony-reflect.js
diff --git a/src/harmony-reflect.js b/src/harmony-reflect.js
index b9ea45fcc9c99d571ca76451a8b2f31d57aa5226..8cb0d716f8ea5193b665a9c16bd7eab2614e250e 100644
--- a/src/harmony-reflect.js
+++ b/src/harmony-reflect.js
@@ -2,17 +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';
-var $Reflect = global.Reflect;
+%CheckIsBootstrapping();
-function SetUpReflect() {
- %CheckIsBootstrapping();
+var GlobalReflect = global.Reflect;
- InstallFunctions($Reflect, DONT_ENUM, [
- "apply", ReflectApply,
- "construct", ReflectConstruct
- ]);
-}
+InstallFunctions(GlobalReflect, DONT_ENUM, [
+ "apply", $reflectApply,
+ "construct", $reflectConstruct
+]);
-SetUpReflect();
+})();
« no previous file with comments | « src/harmony-array-includes.js ('k') | src/harmony-regexp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698