Skip to content

Commit 860ea23

Browse files
committed
fix contextId indexing that broke some ternary checks
1 parent 07fec78 commit 860ea23

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

runtime/src/main/jni/v8_inspector/src/inspector/v8-debugger.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ V8Debugger::V8Debugger(v8::Isolate* isolate, V8InspectorImpl* inspector)
5151
: m_isolate(isolate),
5252
m_inspector(inspector),
5353

54-
m_lastContextId(-1),
54+
m_lastContextId(0),
5555
m_enableCount(0),
5656
m_breakpointsActivated(true),
5757
m_runningNestedMessageLoop(false),
@@ -702,7 +702,6 @@ void V8Debugger::compileDebuggerScript() {
702702
sizeof(DebuggerScript_js))
703703
.ToLocalChecked();
704704

705-
706705
v8::Local<v8::Value> value;
707706
if (!m_inspector->compileAndRunInternalScript(debuggerContext(), scriptValue)
708707
.ToLocal(&value)) {

0 commit comments

Comments
 (0)