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

Unified Diff: src/v8natives.js

Issue 1293493003: Do not export natives to runtime via js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/runtime/runtime-internal.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index 0241507220ef9ea9e51038bc88ba25b0aa4ca24a..a492547367a6b84b64549d2b4ab890561547803a 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -3,10 +3,8 @@
// found in the LICENSE file.
var $functionSourceString;
-var $globalEval;
var $objectDefineOwnProperty;
var $objectGetOwnPropertyDescriptor;
-var $toCompletePropertyDescriptor;
(function(global, utils) {
@@ -1787,10 +1785,8 @@ function GetIterator(obj, method) {
// Exports
$functionSourceString = FunctionSourceString;
-$globalEval = GlobalEval;
$objectDefineOwnProperty = DefineOwnPropertyFromAPI;
$objectGetOwnPropertyDescriptor = ObjectGetOwnPropertyDescriptor;
-$toCompletePropertyDescriptor = ToCompletePropertyDescriptor;
utils.ObjectDefineProperties = ObjectDefineProperties;
utils.ObjectDefineProperty = ObjectDefineProperty;
@@ -1814,4 +1810,9 @@ utils.Export(function(to) {
to.ToNameArray = ToNameArray;
});
+utils.ExportToRuntime(function(to) {
+ to.GlobalEval = GlobalEval;
+ to.ToCompletePropertyDescriptor = ToCompletePropertyDescriptor;
+});
+
})
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698