mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-15 15:58:57 +00:00
fix: initialize event target
This commit is contained in:
@@ -95,6 +95,7 @@ pub const EventTarget = struct {
|
|||||||
// --------
|
// --------
|
||||||
pub fn constructor(page: *Page) !*parser.EventTarget {
|
pub fn constructor(page: *Page) !*parser.EventTarget {
|
||||||
const et = try page.arena.create(EventTarget);
|
const et = try page.arena.create(EventTarget);
|
||||||
|
et.* = .{};
|
||||||
return @ptrCast(&et.base);
|
return @ptrCast(&et.base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user