aboutsummaryrefslogtreecommitdiff
path: root/src/z/Env/root.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-09 08:02:46 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-09 08:02:46 +0200
commite7aebc79968816ea5037c332df7a3534d533b144 (patch)
tree8e538517acfd9774b53a7902aad701d2c07215e4 /src/z/Env/root.zig
parent756957187e7a6d7c0cca932af186d1210ab4ace3 (diff)
update wasm framework
Diffstat (limited to 'src/z/Env/root.zig')
-rw-r--r--src/z/Env/root.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/z/Env/root.zig b/src/z/Env/root.zig
index 6cc5ae3..6fd2bab 100644
--- a/src/z/Env/root.zig
+++ b/src/z/Env/root.zig
@@ -1,6 +1,5 @@
const std = @import("std");
-
const Self = @This();
const js = @import("js.zig");
@@ -18,6 +17,8 @@ pool: std.heap.MemoryPool(Value) = .empty,
results: std.ArrayList(*Value) = .empty,
gpa: std.mem.Allocator,
+pub const default: Self = .{ .gpa = std.heap.wasm_allocator };
+
pub fn init(gpa: std.mem.Allocator) Self {
return .{ .gpa = gpa };
}