Skip to content

Commit a61cf29

Browse files
committed
cdp: let the inspector return the response
When a command is forwarded to the inspector, it handles directly the reponse to the message.
1 parent 2db43ee commit a61cf29

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cdp/runtime.zig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,8 @@ fn sendInspector(cmd: anytype, action: anytype) !void {
5656
}
5757
}
5858

59+
// the result to return is handled directly by the inspector.
5960
bc.session.callInspector(cmd.input.json);
60-
61-
if (cmd.input.id != null) {
62-
return cmd.sendResult(null, .{});
63-
}
6461
}
6562

6663
pub const ExecutionContextCreated = struct {

0 commit comments

Comments
 (0)