From a4b2398aba2211ce5901ceb46f73057864bd1707 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Tue, 6 Oct 2026 14:12:03 +0200 Subject: add global registry --- src/z/Env/root.zig | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/z/Env/root.zig') 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, -- cgit v1.2.3-70-g09d2