From 36dbc28bde1bd33525e3d2d81afe4b2b07c74c8e Mon Sep 17 00:00:00 2001 From: Francis Bouvier Date: Tue, 16 Apr 2024 16:40:50 +0200 Subject: [PATCH] Add Runtime.runIfWaitingForDebugger Signed-off-by: Francis Bouvier --- src/cdp/runtime.zig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/cdp/runtime.zig b/src/cdp/runtime.zig index c21fbdf5..e2330b39 100644 --- a/src/cdp/runtime.zig +++ b/src/cdp/runtime.zig @@ -8,6 +8,7 @@ const stringify = @import("cdp.zig").stringify; const RuntimeMethods = enum { enable, + runIfWaitingForDebugger, }; pub fn runtime( @@ -21,6 +22,7 @@ pub fn runtime( return error.UnknownMethod; return switch (method) { .enable => enable(alloc, id, scanner, ctx), + .runIfWaitingForDebugger => runIfWaitingForDebugger(alloc, id, scanner, ctx), }; } @@ -32,3 +34,12 @@ fn enable( ) ![]const u8 { return result(alloc, id, null, null); } + +fn runIfWaitingForDebugger( + alloc: std.mem.Allocator, + id: u64, + _: *std.json.Scanner, + _: *Ctx, +) ![]const u8 { + return result(alloc, id, null, null); +}