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

Unified Diff: src/promise.js

Issue 1307963002: Native context: alpha sort slots and remove boilerplate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rename 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/object-observe.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 863790fb364e396a372b90dc8bbd36267577c31a..31b6cc12468dcefefb51c89048f0a497e8f6283d 100644
--- a/src/promise.js
+++ b/src/promise.js
@@ -380,13 +380,14 @@ utils.InstallFunctions(GlobalPromise.prototype, DONT_ENUM, [
]);
utils.ExportToRuntime(function(to) {
- to.PromiseCreate = PromiseCreate;
- to.PromiseResolve = PromiseResolve;
- to.PromiseReject = PromiseReject;
- to.PromiseChain = PromiseChain;
- to.PromiseCatch = PromiseCatch;
- to.PromiseThen = PromiseThen;
- to.PromiseHasUserDefinedRejectHandler = PromiseHasUserDefinedRejectHandler;
+ to["promise_catch"] = PromiseCatch;
+ to["promise_chain"] = PromiseChain;
+ to["promise_create"] = PromiseCreate;
+ to["promise_has_user_defined_reject_handler"] =
+ PromiseHasUserDefinedRejectHandler;
+ to["promise_reject"] = PromiseReject;
+ to["promise_resolve"] = PromiseResolve;
+ to["promise_then"] = PromiseThen;
});
})
« no previous file with comments | « src/object-observe.js ('k') | src/proxy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698