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

Unified Diff: src/js/promise.js

Issue 2590373002: [builtins] Add ReturnReceiver builtin (Closed)
Patch Set: remove builtins-iterator Created 4 years 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/heap-symbols.h ('k') | src/v8.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/promise.js
diff --git a/src/js/promise.js b/src/js/promise.js
index 7cd789295644f8be560f8c85346fd9c279720024..adcc3e3e5bba1bd8adde49fcafd9155b694b4138 100644
--- a/src/js/promise.js
+++ b/src/js/promise.js
@@ -23,8 +23,6 @@ var promiseHandledHintSymbol =
var promiseRawSymbol = utils.ImportNow("promise_raw_symbol");
var promiseStateSymbol = utils.ImportNow("promise_state_symbol");
var promiseResultSymbol = utils.ImportNow("promise_result_symbol");
-var SpeciesConstructor;
-var speciesSymbol = utils.ImportNow("species_symbol");
var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
var ObjectHasOwnProperty;
var GlobalPromise = global.Promise;
@@ -32,7 +30,6 @@ var PromiseThen = GlobalPromise.prototype.then;
utils.Import(function(from) {
ObjectHasOwnProperty = from.ObjectHasOwnProperty;
- SpeciesConstructor = from.SpeciesConstructor;
});
// -------------------------------------------------------------------
@@ -343,11 +340,6 @@ function MarkPromiseAsHandled(promise) {
%PromiseMarkAsHandled(promise);
}
-
-function PromiseSpecies() {
- return this;
-}
-
// -------------------------------------------------------------------
// Install exported functions.
@@ -358,8 +350,6 @@ utils.InstallFunctions(GlobalPromise, DONT_ENUM, [
"resolve", PromiseResolve
]);
-utils.InstallGetter(GlobalPromise, speciesSymbol, PromiseSpecies);
-
%SetCode(GlobalPromise.prototype.catch, PromiseCatch);
%InstallToContext([
« no previous file with comments | « src/heap-symbols.h ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698