diff --git a/src/html/window.zig b/src/html/window.zig
index b81c91ba..3f31345b 100644
--- a/src/html/window.zig
+++ b/src/html/window.zig
@@ -28,6 +28,8 @@ const EventTarget = @import("../dom/event_target.zig").EventTarget;
const storage = @import("../storage/storage.zig");
+const log = std.log.scoped(.window);
+
// https://dom.spec.whatwg.org/#interface-window-extensions
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#window
pub const Window = struct {
@@ -66,6 +68,10 @@ pub const Window = struct {
return self;
}
+ pub fn _debug(_: *Window, str: []const u8) void {
+ log.debug("{s}", .{str});
+ }
+
pub fn get_self(self: *Window) *Window {
return self;
}