mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Remove undefined that causes crash
These values are set to undefined, and used (in the item function) before ever being set. Causes crashes in release mode.
This commit is contained in:
@@ -281,8 +281,8 @@ pub const HTMLCollection = struct {
|
|||||||
include_root: bool = false,
|
include_root: bool = false,
|
||||||
|
|
||||||
// save a state for the collection to improve the _item speed.
|
// save a state for the collection to improve the _item speed.
|
||||||
cur_idx: ?u32 = undefined,
|
cur_idx: ?u32 = null,
|
||||||
cur_node: ?*parser.Node = undefined,
|
cur_node: ?*parser.Node = null,
|
||||||
|
|
||||||
// start returns the first node to walk on.
|
// start returns the first node to walk on.
|
||||||
fn start(self: *const HTMLCollection) !?*parser.Node {
|
fn start(self: *const HTMLCollection) !?*parser.Node {
|
||||||
|
|||||||
Reference in New Issue
Block a user