@@ -28,7 +28,14 @@ pub fn init(allocator: Allocator, isolate: v8.Isolate, ctx: anytype) !Inspector
2828 // If necessary, turn a void context into something we can safely ptrCast
2929 const safe_context : * anyopaque = if (ContextT == void ) @ptrCast (@constCast (&{})) else ctx ;
3030
31- const channel = v8 .InspectorChannel .init (safe_context , InspectorContainer .onInspectorResponse , InspectorContainer .onInspectorEvent , isolate );
31+ const channel = v8 .InspectorChannel .init (
32+ safe_context ,
33+ InspectorContainer .onInspectorResponse ,
34+ InspectorContainer .onInspectorEvent ,
35+ InspectorContainer .onRunMessageLoopOnPause ,
36+ InspectorContainer .onQuitMessageLoopOnPause ,
37+ isolate ,
38+ );
3239
3340 const client = v8 .InspectorClient .init ();
3441
@@ -109,6 +116,8 @@ pub fn getNodePtr(self: *const Inspector, allocator: Allocator, object_id: []con
109116const NoopInspector = struct {
110117 pub fn onInspectorResponse (_ : * anyopaque , _ : u32 , _ : []const u8 ) void {}
111118 pub fn onInspectorEvent (_ : * anyopaque , _ : []const u8 ) void {}
119+ pub fn onRunMessageLoopOnPause (_ : * anyopaque , _ : u32 ) void {}
120+ pub fn onQuitMessageLoopOnPause (_ : * anyopaque ) void {}
112121};
113122
114123pub fn getTaggedAnyOpaque (value : v8.Value ) ? * js.TaggedAnyOpaque {
0 commit comments