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

Unified Diff: src/isolate.h

Issue 2276243002: Mark await expressions as caught or uncaught (Closed)
Patch Set: Clean up tests Created 4 years, 3 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
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 6580eecad7ba52605b911767070f9e54fa70c770..8d4e531f23f30c048e8a59c9f3f03f735aa104ab 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -674,6 +674,7 @@ class Isolate {
void PushPromise(Handle<JSObject> promise);
void PopPromise();
Handle<Object> GetPromiseOnStackOnThrow();
+ bool PromiseHasUserDefinedRejectHandler(Handle<JSObject> promise);
class ExceptionScope {
public:
@@ -751,7 +752,9 @@ class Isolate {
NOT_CAUGHT,
CAUGHT_BY_JAVASCRIPT,
CAUGHT_BY_EXTERNAL,
- CAUGHT_BY_DESUGARING
+ CAUGHT_BY_DESUGARING,
+ CAUGHT_BY_PROMISE,
+ CAUGHT_BY_ASYNC_AWAIT
};
CatchType PredictExceptionCatcher();

Powered by Google App Engine
This is Rietveld 408576698