dont require clone

This commit is contained in:
2023-03-25 19:52:07 +00:00
parent a6c14b49a5
commit afc5ae2086

View File

@@ -666,9 +666,8 @@ window.ArgonWASMRuntime = async (config = {}) => {
} }
}; };
const go = new Go(); const go = new Go();
const file = fetch(path);
const result = await WebAssembly.instantiateStreaming( const result = await WebAssembly.instantiateStreaming(
(await file).clone(), fetch(path),
go.importObject go.importObject
); );