Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index ba7113720711b5a5dd4edcc7166845e88118cdb9..bd213f51fef93be88bfae40bedf3b57931fdcc28 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -5140,6 +5140,11 @@ class V8_EXPORT MicrotasksScope { |
*/ |
static int GetCurrentDepth(Isolate* isolate); |
+ /** |
+ * Returns true while microtasks are being executed. |
+ */ |
+ static bool IsRunningMicrotasks(Isolate* isolate); |
+ |
private: |
internal::Isolate* const isolate_; |
bool run_; |