Skip to content

Commit 3c23fd8

Browse files
edusperoniNathanWalker
authored andcommitted
fix: lock isolate before handle_scope (#149)
1 parent d789bf3 commit 3c23fd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

NativeScript/inspector/JsV8InspectorClient.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@
252252

253253
void JsV8InspectorClient::scheduleBreak() {
254254
Isolate* isolate = runtime_->GetIsolate();
255+
v8::Locker locker(isolate);
255256
Isolate::Scope isolate_scope(isolate);
256257
HandleScope handle_scope(isolate);
257258
this->session_->schedulePauseOnNextStatement(StringView(), StringView());

0 commit comments

Comments
 (0)