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

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

Issue 2244003003: Change which ExceptionEvents are triggered by Promises (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed typos Created 4 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 | « no previous file | src/js/promise.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/harmony-async-await.js
diff --git a/src/js/harmony-async-await.js b/src/js/harmony-async-await.js
index 3a48d0c1005842a97bb9c868ae1240aef4a3bd95..192e041e554fbf8d4a1811848ffa801a94cc695f 100644
--- a/src/js/harmony-async-await.js
+++ b/src/js/harmony-async-await.js
@@ -41,7 +41,8 @@ function AsyncFunctionAwait(generator, value) {
var onRejected =
(sentError) => %_Call(AsyncFunctionThrow, generator, sentError);
- var throwawayCapability = NewPromiseCapability(GlobalPromise);
+ // false debugEvent to avoid redundant ExceptionEvents
+ var throwawayCapability = NewPromiseCapability(GlobalPromise, false);
return PerformPromiseThen(promise, onFulfilled, onRejected,
throwawayCapability);
}
« no previous file with comments | « no previous file | src/js/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698