diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-26 15:45:33 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-26 15:45:33 +0100 |
| commit | feeedb0bf31314b182e7bbc135182f6e0bc859b2 (patch) | |
| tree | 163948cd874729925c2bf57d0927619065d2322d /src/zilch | |
| parent | 91d9b6992ac0ebee13704a3faefa8fd41a00075e (diff) | |
update zilch
Diffstat (limited to 'src/zilch')
| -rw-r--r-- | src/zilch/App/root.zig | 1 | ||||
| -rw-r--r-- | src/zilch/Env/future.zig | 5 | ||||
| -rw-r--r-- | src/zilch/component.template.js | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/src/zilch/App/root.zig b/src/zilch/App/root.zig index 01e2695..e40b4e0 100644 --- a/src/zilch/App/root.zig +++ b/src/zilch/App/root.zig @@ -95,6 +95,7 @@ pub fn App(comptime options: Options) type { .name = "viewport", .content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0", }), + .void("meta", .{ .charset = "utf8" }), .node("style", .{}, &.{.text(options.theme)}), .node("script", .{}, &.{.text(@embedFile("symbols.js"))}), .node("script", .{}, &.{.text(@embedFile("object-store.js"))}), diff --git a/src/zilch/Env/future.zig b/src/zilch/Env/future.zig index f829009..43f46c5 100644 --- a/src/zilch/Env/future.zig +++ b/src/zilch/Env/future.zig @@ -42,7 +42,10 @@ pub const AnyFuture = union(enum) { pub fn awaitAny(self: *Self, env: *Env) !Env.Value { defer self.* = undefined; switch (self.*) { - .ignored => @panic("awaited ignored value"), + .ignored => { + env.flush(); + return .from({}); + }, .err => |err| return err, .resolved => |result| return result, .unresolved => |result| { diff --git a/src/zilch/component.template.js b/src/zilch/component.template.js index 6addef2..bd6d634 100644 --- a/src/zilch/component.template.js +++ b/src/zilch/component.template.js @@ -12,7 +12,7 @@ customElements.define("{s}-{s}", class extends HTMLElement {{ wasm_ready.then(() => {{ const id = ObjectStore.generateFreeId(); ObjectStore.registerObject(id, this); - this[ZsPtr] = wasm.exports['export::{s}::init'](id, this[ZsPtr]); + this[ZsPtr] = wasm.exports['export::{s}::init'](id); }}); }} }} |