bytecodealliance / wasm-tools

CLI and Rust libraries for low-level manipulation of WebAssembly modules
Apache License 2.0
1.21k stars 224 forks source link

Fix newline separators between invalid `end` instructions #1640

Closed alexcrichton closed 5 days ago

alexcrichton commented 6 days ago

This commit fixes a bug from a prior refactoring where when there were too many end instructions in a function, which is invalid, then printing would confusingly "fuse" instructions together by not printing a separator.