diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-15 11:25:14 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-15 11:25:14 +0200 |
| commit | a1dc55be6e695a1c04e5e9e0f1ce7406a5dd3dff (patch) | |
| tree | 46e78cce4fcc9ec7f04b3ae69bf53d9a81710dbe /src/zilch/Env/future.zig | |
| parent | 0b2af471b6d5dfc4eaf53639102c1b854bbb324b (diff) | |
add function struct to register js functions dynamically
Diffstat (limited to 'src/zilch/Env/future.zig')
| -rw-r--r-- | src/zilch/Env/future.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zilch/Env/future.zig b/src/zilch/Env/future.zig index a014990..6e0cc63 100644 --- a/src/zilch/Env/future.zig +++ b/src/zilch/Env/future.zig @@ -44,7 +44,7 @@ pub const AnyFuture = union(enum) { switch (self.*) { .err => |err| return err, .result => |result| { - defer env.pool.destroy(result); + defer env.release(self.*); if (result.kind != .uninit) { return result.*; |