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

Unified Diff: src/objects.h

Issue 2604483002: [promises] Move PromiseHasUserDefinedRejectHandler to c++ (Closed)
Patch Set: use getdataproperty 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index b3b23662194415658b93c7dbbfad66ae7f24a728..44ba7428cc9930cdc6e3b8b02cab4f4d71e54906 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -8655,6 +8655,10 @@ class JSPromise : public JSObject {
// [has_handler]: Whether this promise has a reject handler or not.
DECL_BOOLEAN_ACCESSORS(has_handler)
+ // [handled_hint]: Whether this promise will be handled by a catch
+ // block in an async function.
+ DECL_BOOLEAN_ACCESSORS(handled_hint)
+
static const char* Status(int status);
DECLARE_CAST(JSPromise)
@@ -8675,6 +8679,7 @@ class JSPromise : public JSObject {
// Flags layout.
static const int kHasHandlerBit = 0;
+ static const int kHandledHintBit = 1;
};
// Regular expressions
« no previous file with comments | « src/js/promise.js ('k') | src/objects-inl.h » ('j') | src/runtime/runtime-promise.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698