From e7aebc79968816ea5037c332df7a3534d533b144 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 9 Oct 2026 08:02:46 +0200 Subject: update wasm framework --- src/z/Env/root.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/z/Env/root.zig') 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 }; } -- cgit v1.2.3-70-g09d2