Skip to content

Commit 844d68c

Browse files
committed
fix session counter for {N}
1 parent d87ad9c commit 844d68c

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

runtime/src/main/jni/Runtime.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ using namespace v8;
2929
using namespace std;
3030
using namespace tns;
3131

32-
//TODO: Lubo: properly release this jni global ref on shutdown
33-
3432
bool tns::LogEnabled = true;
3533
SimpleAllocator g_allocator;
3634

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ v8::MaybeLocal<v8::Value> V8Debugger::callDebuggerMethod(
5050
V8Debugger::V8Debugger(v8::Isolate* isolate, V8InspectorImpl* inspector)
5151
: m_isolate(isolate),
5252
m_inspector(inspector),
53-
m_lastContextId(0),
53+
54+
m_lastContextId(-1),
5455
m_enableCount(0),
5556
m_breakpointsActivated(true),
5657
m_runningNestedMessageLoop(false),

runtime/src/main/jni/v8_inspector/src/inspector/v8-inspector-session-impl.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,11 @@ void V8InspectorSessionImpl::discardInjectedScripts() {
167167

168168
InjectedScript* V8InspectorSessionImpl::findInjectedScript(
169169
ErrorString* errorString, int contextId) {
170-
if (!contextId) {
171-
*errorString = "Cannot find context with specified id";
172-
return nullptr;
173-
}
170+
171+
// if (!contextId) {
172+
// *errorString = "Cannot find context with specified id";
173+
// return nullptr;
174+
// }
174175

175176
const V8InspectorImpl::ContextByIdMap* contexts =
176177
m_inspector->contextGroup(m_contextGroupId);

0 commit comments

Comments
 (0)