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

Unified Diff: include/v8.h

Issue 2365833002: Add method on Value::IsAsyncFunction to detect async functions (Closed)
Patch Set: format 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
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 688f228f50e1da585d21d234f323a6fb8f87df6a..edba8eaece01ae12955c89426ef8c57edf7a973d 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2014,6 +2014,11 @@ class V8_EXPORT Value : public Data {
bool IsRegExp() const;
/**
+ * Returns true if this value is an async function.
+ */
+ bool IsAsyncFunction() const;
+
+ /**
* Returns true if this value is a Generator function.
* This is an experimental feature.
*/
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698