Skip to content

Commit 63e6fb3

Browse files
committed
inspector: rename context into ctx_handle
1 parent 252531f commit 63e6fb3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/v8.zig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,9 @@ pub const Inspector = struct {
22992299

23002300
rnd: RndGen = RndGen.init(0),
23012301

2302-
context: ?*const C_Context = null,
2302+
// The default JS context handle.
2303+
// Set when a context is created.
2304+
ctx_handle: ?*const C_Context = null,
23032305

23042306
const RndGen = std.rand.DefaultPrng;
23052307

@@ -2373,7 +2375,7 @@ pub const Inspector = struct {
23732375
contextGroupId,
23742376
ctx.handle,
23752377
);
2376-
self.context = ctx.handle;
2378+
self.ctx_handle = ctx.handle;
23772379
}
23782380
};
23792381

@@ -2462,7 +2464,7 @@ pub export fn v8_inspector__Client__IMPL__ensureDefaultContextInGroup(
24622464
) callconv(.C) ?*const C_Context {
24632465
std.log.debug("InspectorClient ensureDefaultContextInGroup called", .{});
24642466
const inspector = Inspector.fromData(data);
2465-
return inspector.context;
2467+
return inspector.ctx_handle;
24662468
}
24672469

24682470
// InspectorChannel

0 commit comments

Comments
 (0)