mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-14 15:28: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 {
|
||||
const et = try page.arena.create(EventTarget);
|
||||
et.* = .{};
|
||||
return @ptrCast(&et.base);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user