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

Unified Diff: src/promise.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/prologue.js ('k') | src/proxy.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/promise.js
diff --git a/src/promise.js b/src/promise.js
index 0fd4b89c5173821f972a37d18f78ab789fe1159f..c0b1e14635560e51d50510de097a58419e89ebde 100644
--- a/src/promise.js
+++ b/src/promise.js
@@ -2,12 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-var $promiseCreate;
-var $promiseResolve;
-var $promiseReject;
-var $promiseChain;
-var $promiseCatch;
-var $promiseThen;
var $promiseHasUserDefinedRejectHandler;
var $promiseStatus;
var $promiseValue;
@@ -386,14 +380,19 @@ utils.InstallFunctions(GlobalPromise.prototype, DONT_ENUM, [
"catch", PromiseCatch
]);
-$promiseCreate = PromiseCreate;
-$promiseResolve = PromiseResolve;
-$promiseReject = PromiseReject;
-$promiseChain = PromiseChain;
-$promiseCatch = PromiseCatch;
-$promiseThen = PromiseThen;
$promiseHasUserDefinedRejectHandler = PromiseHasUserDefinedRejectHandler;
$promiseStatus = promiseStatus;
$promiseValue = promiseValue;
+utils.ExportToRuntime(function(to) {
+ to.promiseStatus = promiseStatus;
+ to.promiseValue = promiseValue;
+ to.PromiseCreate = PromiseCreate;
+ to.PromiseResolve = PromiseResolve;
+ to.PromiseReject = PromiseReject;
+ to.PromiseChain = PromiseChain;
+ to.PromiseCatch = PromiseCatch;
+ to.PromiseThen = PromiseThen;
+});
+
})
« no previous file with comments | « src/prologue.js ('k') | src/proxy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698