Skip to content

Commit de77365

Browse files
committed
fix: drain the microtask queue after devtools message
1 parent 49263c2 commit de77365

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

NativeScript/inspector/JsV8InspectorClient.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@
243243
Isolate* isolate = this->runtime_->GetIsolate();
244244
v8::Locker locker(isolate);
245245
this->session_->dispatchProtocolMessage(messageView);
246+
// TODO: check why this is needed (it should trigger automatically when script depth is 0)
247+
isolate->PerformMicrotaskCheckpoint();
246248
}
247249

248250
Local<Context> JsV8InspectorClient::ensureDefaultContextInGroup(int contextGroupId) {

0 commit comments

Comments
 (0)