File tree Expand file tree Collapse file tree
v8_inspector/src/inspector Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ using namespace v8;
2929using namespace std ;
3030using namespace tns ;
3131
32- // TODO: Lubo: properly release this jni global ref on shutdown
33-
3432bool tns::LogEnabled = true ;
3533SimpleAllocator g_allocator;
3634
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ v8::MaybeLocal<v8::Value> V8Debugger::callDebuggerMethod(
5050V8Debugger::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 ),
Original file line number Diff line number Diff line change @@ -167,10 +167,11 @@ void V8InspectorSessionImpl::discardInjectedScripts() {
167167
168168InjectedScript* 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);
You can’t perform that action at this time.
0 commit comments