Chromium Code Reviews

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.
Jump to:
View side-by-side diff with in-line comments
« 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