Skip to content

Commit f8ec1c6

Browse files
committed
cdp: add specific noop Runtime.enable
1 parent c761cd0 commit f8ec1c6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/cdp/runtime.zig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,24 @@ pub fn runtime(
5151
return error.UnknownMethod;
5252
return switch (method) {
5353
.runIfWaitingForDebugger => runIfWaitingForDebugger(alloc, msg, ctx),
54+
.enable => enable(alloc, msg, ctx),
5455
else => sendInspector(alloc, method, msg, ctx),
5556
};
5657
}
5758

59+
fn enable(
60+
alloc: std.mem.Allocator,
61+
msg: *IncomingMessage,
62+
_: *Ctx,
63+
) ![]const u8 {
64+
// input
65+
const input = try Input(void).get(alloc, msg);
66+
defer input.deinit();
67+
log.debug("Req > id {d}, method {s}", .{ input.id, "runtime.enable" });
68+
69+
return result(alloc, input.id, null, null, input.sessionId);
70+
}
71+
5872
fn sendInspector(
5973
alloc: std.mem.Allocator,
6074
method: Methods,

0 commit comments

Comments
 (0)