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

Unified Diff: src/js/async-await.js

Issue 2633353002: [async-await] Remove RejectPromiseNoDebugEvent (Closed)
Patch Set: Rebase on top of latest changes Created 3 years, 11 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/contexts.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/async-await.js
diff --git a/src/js/async-await.js b/src/js/async-await.js
index f0104ed9accb64234437d57ab5b842d86c3af6c0..079a5fcaa44b723e1b7c631e93cc38ba499f1a74 100644
--- a/src/js/async-await.js
+++ b/src/js/async-await.js
@@ -106,11 +106,6 @@ function AsyncFunctionAwaitCaught(generator, awaited, outerPromise) {
AsyncFunctionAwait(generator, awaited, outerPromise);
}
-// How the parser rejects promises from async/await desugaring
-function RejectPromiseNoDebugEvent(promise, reason) {
- return %promise_internal_reject(promise, reason, false);
-}
-
function AsyncFunctionPromiseCreate() {
var promise = %promise_internal_constructor(UNDEFINED);
if (DEBUG_IS_ACTIVE) {
@@ -135,7 +130,6 @@ function AsyncFunctionPromiseRelease(promise) {
%InstallToContext([
"async_function_await_caught", AsyncFunctionAwaitCaught,
"async_function_await_uncaught", AsyncFunctionAwaitUncaught,
- "reject_promise_no_debug_event", RejectPromiseNoDebugEvent,
"async_function_promise_create", AsyncFunctionPromiseCreate,
"async_function_promise_release", AsyncFunctionPromiseRelease,
]);
« no previous file with comments | « src/contexts.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698