From cea18c5f76930149be3dd059e2dde795bbdeb2da Mon Sep 17 00:00:00 2001 From: Nicolas Lepage <19571875+nlepage@users.noreply.github.com> Date: Fri, 22 Jan 2021 00:10:05 +0100 Subject: [PATCH] :alembic: --- sw.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sw.js b/sw.js index 5593c6e..53fd3c9 100644 --- a/sw.js +++ b/sw.js @@ -27,9 +27,8 @@ function registerWasmHTTPListener(wasm, base, args = []) { const go = new Go() go.env = { WASMHTTP_HANDLER_ID: handlerId, WASMHTTP_PATH: path } go.argv = [wasm, ...args] - const { instance } = await WebAssembly.instantiateStreaming(wasmPromise, go.importObject) // FIXME await ? catch ? - go.run(instance) + WebAssembly.instantiateStreaming(wasmPromise, go.importObject).then(({ instance }) => go.run(instance)) e.respondWith(handlerPromise.then(handler => handler(e.request))) })