Skip to content

Commit

Permalink
fix(android): specify default inspector context (#11375)
Browse files Browse the repository at this point in the history
  • Loading branch information
garymathews authored and ssekhri committed Dec 12, 2019
1 parent d673c36 commit c29960d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions android/runtime/v8/src/native/InspectorClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <v8-inspector.h>

#include "KrollBindings.h"
#include "V8Runtime.h"

namespace titanium {

Expand Down Expand Up @@ -49,6 +50,13 @@ class InspectorClient : public v8_inspector::V8InspectorClient
*/
static void Initialize(v8::Local<v8::Object>, v8::Local<v8::Context>);

/**
* Override to specify valid default context.
*/
v8::Local<v8::Context> ensureDefaultContextInGroup(int contextGroupId) override {
return V8Runtime::GlobalContext();
}

private:
static const int kContextGroupId = 1;
const int kInspectorClientIndex = v8::Context::kDebugIdIndex + 1;
Expand Down

0 comments on commit c29960d

Please sign in to comment.