From 5734b903eca275a2221c25963b0ba297a6c24c47 Mon Sep 17 00:00:00 2001 From: Francis Bouvier Date: Sat, 13 Jan 2024 15:14:43 +0100 Subject: [PATCH] Adapt HTMLCollectionIterator to HTMLCollection._item changes And update jsruntime to fix the build Signed-off-by: Francis Bouvier --- src/dom/html_collection.zig | 4 ++-- vendor/jsruntime-lib | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dom/html_collection.zig b/src/dom/html_collection.zig index c528a063..61a63610 100644 --- a/src/dom/html_collection.zig +++ b/src/dom/html_collection.zig @@ -349,8 +349,8 @@ pub const HTMLCollectionIterator = struct { done: bool, }; - pub fn _next(self: *HTMLCollectionIterator, allocator: std.mem.Allocator) !Return { - const e = try self.coll._item(allocator, self.index); + pub fn _next(self: *HTMLCollectionIterator) !Return { + const e = try self.coll._item(self.index); if (e == null) { return Return{ .value = null, diff --git a/vendor/jsruntime-lib b/vendor/jsruntime-lib index 9c07e80c..6cefb9b5 160000 --- a/vendor/jsruntime-lib +++ b/vendor/jsruntime-lib @@ -1 +1 @@ -Subproject commit 9c07e80cbfeff8007682a9fb4dceae6e07b59f54 +Subproject commit 6cefb9b52c295914ffa042c39efcc85637247282