Skip to content

Commit

Permalink
Adapt HTMLCollectionIterator to HTMLCollection._item changes
Browse files Browse the repository at this point in the history
And update jsruntime to fix the build

Signed-off-by: Francis Bouvier <[email protected]>
  • Loading branch information
francisbouvier committed Jan 13, 2024
1 parent 0b17d79 commit 5734b90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dom/html_collection.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion vendor/jsruntime-lib

0 comments on commit 5734b90

Please sign in to comment.