This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Description
Describe the Bug
wasm-snip fails to parse Wasm that contains SIMD instructions such as v128:
error: failed to parse code section
caused by found type v128
caused by expected type i32
caused by The input WebAssembly is invalid
Steps to Reproduce
- Take a Wasm file that uses SIMD instructions (example: https://ameo.link/u/8oc.wasm)
- Use it as input for
wasm-snip: wasm-snip 8oc.wasm
Additional Context
This might just be a matter of bumping the wasm parsing libraries. However, some other Wasm tooling I use wasm-opt and wasm2wat both require special command line arguments to be passed in order to deal with SIMD.