aboutsummaryrefslogtreecommitdiff
path: root/src/z/Env/root.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-06 14:12:03 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-06 14:12:03 +0200
commita4b2398aba2211ce5901ceb46f73057864bd1707 (patch)
tree99c3d277ad991c189bf342238509be59b36b7889 /src/z/Env/root.zig
parentdccd1987b418e47b4b82eda3aeaed40be18d9e45 (diff)
add global registry
Diffstat (limited to 'src/z/Env/root.zig')
-rw-r--r--src/z/Env/root.zig7
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,