Open starua opened 1 year ago
I am guessing this behavior exists upstream so it might help to test the build from https://github.com/WebAssembly/binaryen and file an issue with them.
The issue could be related to a change in binaryen 111 - by default binaryen now uses the sign-extension and mutable-globals features, which some runtimes might not support.
To test this you can try 2 things:
--mvp-features
flag to wasm-opt, which should turn off these two featuresNo, neither --mvp-features
flag nor downgrade worked.
This is the optimized wasm file with version 110 & --mvp-features
flag: binary.zip
Version:
wasm-opt version 112 (version_112)
Command args:-O4 -g
Node.js Version:v8.9.3
Got this error when calling
WebAssembly.Module
:Note that upgrade node.js or disable optimize can solve this error.
File Pack: pack.zip
Origin wasm file:
binary.wasm
Optimized wasm file:binary.wasm-opt.wasm
wasm-opt binary archive:wasm-opt