Skip to content

Commit 6c7daaf

Browse files
committed
cdp: accept neg depth in describeNode
1 parent 2759cf2 commit 6c7daaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cdp/domains/dom.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,11 @@ fn describeNode(cmd: anytype) !void {
306306
nodeId: ?Node.Id = null,
307307
backendNodeId: ?Node.Id = null,
308308
objectId: ?[]const u8 = null,
309-
depth: u32 = 1,
309+
depth: i32 = 1,
310310
pierce: bool = false,
311311
})) orelse return error.InvalidParams;
312312

313-
if (params.depth != 1 or params.pierce) return error.NotImplemented;
313+
if (params.pierce) return error.NotImplemented;
314314
const bc = cmd.browser_context orelse return error.BrowserContextNotLoaded;
315315

316316
const node = try getNode(cmd.arena, bc, params.nodeId, params.backendNodeId, params.objectId);

0 commit comments

Comments
 (0)