You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CompileError: WebAssembly.Module(): Compiling wasm function #318:loop failed: Invalid opcode @+122854
at Object.<anonymous> (<Glue File>:695:20)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at repl:1:9
at ContextifyScript.Script.runInThisContext (vm.js:50:33)
Note that upgrade node.js or disable optimize can solve this error.
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:
pass the --mvp-features flag to wasm-opt, which should turn off these two features
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
The text was updated successfully, but these errors were encountered: