Skip to content

Commit

Permalink
fix: drain the microtask queue after devtools message
Browse files Browse the repository at this point in the history
  • Loading branch information
edusperoni committed Mar 24, 2023
1 parent 49263c2 commit de77365
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NativeScript/inspector/JsV8InspectorClient.mm
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@
Isolate* isolate = this->runtime_->GetIsolate();
v8::Locker locker(isolate);
this->session_->dispatchProtocolMessage(messageView);
// TODO: check why this is needed (it should trigger automatically when script depth is 0)
isolate->PerformMicrotaskCheckpoint();
}

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

0 comments on commit de77365

Please sign in to comment.