Skip to content

Commit af96817

Browse files
committed
Fix use of instantiateStreaming's result object in new loader, see AssemblyScript#295
1 parent e22524f commit af96817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/loader/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ exports.instantiateBuffer = instantiateBuffer;
188188
async function instantiateStreaming(response, imports) {
189189
return postInstantiate(
190190
preInstantiate(imports || (imports = {})),
191-
await WebAssembly.instantiateStreaming(response, imports)
191+
(await WebAssembly.instantiateStreaming(response, imports)).instance
192192
);
193193
}
194194

0 commit comments

Comments
 (0)