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
% d8 $PWD/pkg/dart2wasm/bin/run_wasm.js -- $PWD/jj.mjs $PWD/jj.wasm
run_wasm.js:346: CompileError: WebAssembly.compile(): Compiling function #181:"main" failed: not enough arguments on the stack for drop (need 1, got 0) @+25996
}
^
CompileError: WebAssembly.compile(): Compiling function #181:"main" failed: not enough arguments on the stack for drop (need 1, got 0) @+25996
1 pending unhandled Promise rejection(s) detected.
Though optimizing with wasm-opt works fine and the result runs:
This is WAI for now, unfortunately. Binaryen represents that block as having bottom type internally, so this parses into valid Binaryen IR, even though it is not valid WebAssembly. A fix would involve adding an entirely new validator in the parser, since the IR does not retain enough information to detect this error.
Activity
tlively commentedon May 28, 2026
This is WAI for now, unfortunately. Binaryen represents that block as having bottom type internally, so this parses into valid Binaryen IR, even though it is not valid WebAssembly. A fix would involve adding an entirely new validator in the parser, since the IR does not retain enough information to detect this error.
Fix WebAssembly#8785: validate Wasm stack in IRBuilder without changi…