Skip to content

Commit 8f4be9b

Browse files
committed
break when child node list fails
1 parent 4d07581 commit 8f4be9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdp/Node.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ pub const Writer = struct {
228228
try w.objectField("children");
229229
try w.beginArray();
230230
for (0..child_count) |_| {
231-
const child = (try parser.nodeListItem(child_nodes, @intCast(i))) orelse continue;
231+
const child = (try parser.nodeListItem(child_nodes, @intCast(i))) orelse break;
232232
const child_node = try registry.register(child);
233233
try w.beginObject();
234234
try writeCommon(child_node, true, w);

0 commit comments

Comments
 (0)