File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments