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

Unified Diff: src/d8.h

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: Partially fix `throw` completions (resumption works, but no resumption doesn't) Created 4 years, 8 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/d8.h
diff --git a/src/d8.h b/src/d8.h
index 321d9c17706d5b1d4793dcda256bae864108eb07..e2456deb07cefd89b20b8a677eeb255e22d09512 100644
--- a/src/d8.h
+++ b/src/d8.h
@@ -401,6 +401,10 @@ class Shell : public i::AllStatic {
const v8::FunctionCallbackInfo<v8::Value>& args);
static void WorkerGetMessage(const v8::FunctionCallbackInfo<v8::Value>& args);
static void WorkerTerminate(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ // Run queued microtasks and clear task queue
+ static void FlushMicrotasks(const v8::FunctionCallbackInfo<v8::Value>& args);
+
// The OS object on the global object contains methods for performing
// operating system calls:
//

Powered by Google App Engine
This is Rietveld 408576698