Adapt HTMLCollectionIterator to HTMLCollection._item changes

And update jsruntime to fix the build

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Francis Bouvier
2024-01-13 15:14:43 +01:00
parent 0b17d79baa
commit 5734b903ec
2 changed files with 3 additions and 3 deletions

View File

@@ -349,8 +349,8 @@ pub const HTMLCollectionIterator = struct {
done: bool, done: bool,
}; };
pub fn _next(self: *HTMLCollectionIterator, allocator: std.mem.Allocator) !Return { pub fn _next(self: *HTMLCollectionIterator) !Return {
const e = try self.coll._item(allocator, self.index); const e = try self.coll._item(self.index);
if (e == null) { if (e == null) {
return Return{ return Return{
.value = null, .value = null,