mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
Partial fix
This commit is contained in:
@@ -45,6 +45,10 @@ pub const Loader = struct {
|
||||
did_load_process: bool = false,
|
||||
reject_unauthorized: ?bool = null,
|
||||
|
||||
pub fn iterator(this: *const Loader) Map.HashTable.Iterator {
|
||||
return this.map.iterator();
|
||||
}
|
||||
|
||||
pub fn has(this: *const Loader, input: []const u8) bool {
|
||||
const value = this.get(input) orelse return false;
|
||||
if (value.len == 0) return false;
|
||||
@@ -1152,12 +1156,12 @@ pub const Map = struct {
|
||||
return result[0..].ptr;
|
||||
}
|
||||
|
||||
pub inline fn init(allocator: std.mem.Allocator) Map {
|
||||
return Map{ .map = HashTable.init(allocator) };
|
||||
pub fn iterator(this: *const Map) HashTable.Iterator {
|
||||
return this.map.iterator();
|
||||
}
|
||||
|
||||
pub inline fn iterator(this: *Map) HashTable.Iterator {
|
||||
return this.map.iterator();
|
||||
pub inline fn init(allocator: std.mem.Allocator) Map {
|
||||
return Map{ .map = HashTable.init(allocator) };
|
||||
}
|
||||
|
||||
pub inline fn put(this: *Map, key: string, value: string) !void {
|
||||
|
||||
Reference in New Issue
Block a user