diff --git a/src/main_wpt.zig b/src/main_wpt.zig index 1eca4cfd..eb00b3a1 100644 --- a/src/main_wpt.zig +++ b/src/main_wpt.zig @@ -25,10 +25,12 @@ const FileLoader = struct { const Self = @This(); fn new(alloc: std.mem.Allocator, path: []const u8) Self { + const files = std.StringHashMap([]const u8).init(alloc); + return Self{ .path = path, .alloc = alloc, - .files = std.StringHashMap([]const u8).init(alloc), + .files = files, }; } fn get(self: *Self, name: []const u8) ![]const u8 {