diff options
Diffstat (limited to 'src/z/Env/root.zig')
| -rw-r--r-- | src/z/Env/root.zig | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/z/Env/root.zig b/src/z/Env/root.zig index 99b47c5..5a08362 100644 --- a/src/z/Env/root.zig +++ b/src/z/Env/root.zig @@ -1,6 +1,5 @@ const std = @import("std"); -const mod = @import("../root.zig"); const js = @import("js.zig"); const Self = @This(); @@ -10,9 +9,7 @@ const future = @import("future.zig"); pub const AnyFuture = future.AnyFuture; pub const Future = future.Future; pub const Value = @import("value.zig").Value; -pub const Object = extern struct {}; - -pub const window: *Object = @ptrFromInt(1); +pub const Object = @import("Object.zig"); calls: std.ArrayList(Call) = .empty, values: std.ArrayList(Value) = .empty, @@ -56,7 +53,7 @@ pub fn setProp( pub fn deleteProp( self: *Self, object: *Object, - key: []const u8, + key: anytype, ) Future(.undefined) { self.calls.append(self.gpa, .{ .kind = .del_prop, |