mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
wpt: declare FilesMap type in FileLoader struct
This commit is contained in:
@@ -17,12 +17,14 @@ const apis = jsruntime.compile(DOM.Interfaces);
|
|||||||
|
|
||||||
// FileLoader loads files content from the filesystem.
|
// FileLoader loads files content from the filesystem.
|
||||||
const FileLoader = struct {
|
const FileLoader = struct {
|
||||||
files: std.StringHashMap([]const u8),
|
const FilesMap = std.StringHashMap([]const u8);
|
||||||
|
|
||||||
|
files: FilesMap,
|
||||||
path: []const u8,
|
path: []const u8,
|
||||||
alloc: std.mem.Allocator,
|
alloc: std.mem.Allocator,
|
||||||
|
|
||||||
fn init(alloc: std.mem.Allocator, path: []const u8) FileLoader {
|
fn init(alloc: std.mem.Allocator, path: []const u8) FileLoader {
|
||||||
const files = std.StringHashMap([]const u8).init(alloc);
|
const files = FilesMap.init(alloc);
|
||||||
|
|
||||||
return FileLoader{
|
return FileLoader{
|
||||||
.path = path,
|
.path = path,
|
||||||
|
|||||||
Reference in New Issue
Block a user