Skip to content

Commit

Permalink
fix: lock isolate before handle_scope (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
edusperoni authored and NathanWalker committed Mar 7, 2022
1 parent d789bf3 commit 3c23fd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions NativeScript/inspector/JsV8InspectorClient.mm
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@

void JsV8InspectorClient::scheduleBreak() {
Isolate* isolate = runtime_->GetIsolate();
v8::Locker locker(isolate);
Isolate::Scope isolate_scope(isolate);
HandleScope handle_scope(isolate);
this->session_->schedulePauseOnNextStatement(StringView(), StringView());
Expand Down

0 comments on commit 3c23fd8

Please sign in to comment.