Skip to content

Commit 496b49c

Browse files
Merge pull request #140 from lightpanda-io/inspector-reset-context
expose Inspector.resetContextGroup
2 parents 200bd9b + 1b38bd3 commit 496b49c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/binding.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,6 +2231,11 @@ void v8_inspector__Inspector__ContextDestroyed(v8_inspector::V8Inspector *self,
22312231
self->contextDestroyed(ptr_to_local(&ctx));
22322232
}
22332233

2234+
void v8_inspector__Inspector__ResetContextGroup(v8_inspector::V8Inspector *self,
2235+
int contextGroupId) {
2236+
self->resetContextGroup(contextGroupId);
2237+
}
2238+
22342239
// InspectorSession
22352240

22362241
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
@@ -1307,8 +1307,11 @@ void v8_inspector__Inspector__ContextCreated(Inspector *self, const char *name,
13071307
const char *auxData, const usize auxData_len,
13081308
int contextGroupId,
13091309
const Context* context);
1310+
13101311
void v8_inspector__Inspector__ContextDestroyed(Inspector *self, const Context *ctx);
13111312

1313+
void v8_inspector__Inspector__ResetContextGroup(Inspector *self, int contextGroupId);
1314+
13121315
// RemoteObject
13131316
void v8_inspector__RemoteObject__DELETE(RemoteObject *self);
13141317

0 commit comments

Comments
 (0)