mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-17 16:10:02 -04:00
make wasm not found better
This commit is contained in:
parent
c1f7ebf752
commit
c29a0b6627
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ function rewriteJsWasm(
|
|||
meta: URLMeta,
|
||||
module: boolean
|
||||
): { js: string | Uint8Array; map: Uint8Array | null; tag: string } {
|
||||
if (!(self.REAL_WASM && self.REAL_WASM instanceof Uint8Array))
|
||||
throw new Error("rewriter wasm not found (was it fetched correctly?)");
|
||||
initSync({
|
||||
module: new WebAssembly.Module(self.REAL_WASM),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue