Index: src/inspector/v8-runtime-agent-impl.cc |
diff --git a/src/inspector/v8-runtime-agent-impl.cc b/src/inspector/v8-runtime-agent-impl.cc |
index ae1393d23ec55b906540d27a73da39bb1706f584..ca9895f25a44df3d3846c8269fa4d63965619db8 100644 |
--- a/src/inspector/v8-runtime-agent-impl.cc |
+++ b/src/inspector/v8-runtime-agent-impl.cc |
@@ -78,6 +78,8 @@ class ProtocolPromiseHandler { |
callback->sendFailure(notPromiseError); |
return; |
} |
+ v8::MicrotasksScope microtasks_scope(inspector->isolate(), |
+ v8::MicrotasksScope::kRunMicrotasks); |
v8::Local<v8::Promise> promise = |
v8::Local<v8::Promise>::Cast(value.ToLocalChecked()); |
Callback* rawCallback = callback.get(); |