diff options
Diffstat (limited to 'src/zilch/component.template.js')
| -rw-r--r-- | src/zilch/component.template.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zilch/component.template.js b/src/zilch/component.template.js index bd6d634..553fe11 100644 --- a/src/zilch/component.template.js +++ b/src/zilch/component.template.js @@ -9,10 +9,10 @@ customElements.define("{s}-{s}", class extends HTMLElement {{ }} connectedCallback() {{ if (this[ZsPtr] === null) {{ - wasm_ready.then(() => {{ + wasm_ready.then(async () => {{ const id = ObjectStore.generateFreeId(); ObjectStore.registerObject(id, this); - this[ZsPtr] = wasm.exports['export::{s}::init'](id); + this[ZsPtr] = await WebAssembly.promising(wasm.exports['export::{s}::init'])(id); }}); }} }} |