Skip to content

Commit d188bfb

Browse files
authored
Merge pull request #170 from lightpanda-io/inspector_executionContextId
Expose v8_inspector::V8ContextInfo::executionContextId
2 parents 8145faf + 0c56b7d commit d188bfb

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/binding.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2473,6 +2473,10 @@ void v8_inspector__Inspector__ResetContextGroup(v8_inspector::V8Inspector *self,
24732473
self->resetContextGroup(contextGroupId);
24742474
}
24752475

2476+
int v8__inspector__executionContextId(const v8::Context &ctx) {
2477+
return v8_inspector::V8ContextInfo::executionContextId(ptr_to_local(&ctx));
2478+
}
2479+
24762480
// InspectorSession
24772481

24782482
void v8_inspector__Session__DELETE(v8_inspector::V8InspectorSession* self) {

src/binding.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,7 @@ char* v8_inspector__Client__IMPL__valueSubtype(
13571357
char* v8_inspector__Client__IMPL__descriptionForValueSubtype(
13581358
InspectorClientImpl* self, Context context, Value value);
13591359

1360+
13601361
// RemoteObject
13611362
typedef struct RemoteObject RemoteObject;
13621363
typedef struct WebDriverValue WebDriverValue;
@@ -1403,6 +1404,8 @@ void v8_inspector__Inspector__ContextDestroyed(Inspector *self, const Context *c
14031404

14041405
void v8_inspector__Inspector__ResetContextGroup(Inspector *self, int contextGroupId);
14051406

1407+
int v8__inspector__executionContextId(const Context* context);
1408+
14061409
// RemoteObject
14071410
void v8_inspector__RemoteObject__DELETE(RemoteObject *self);
14081411

0 commit comments

Comments
 (0)