binaryen.js: Valid module fails assertions during `mod.optimize()`
I’m working on a compiler that uses binaryen.js
to generate Wasm. A problem I’ve run into, however, is that running mod.optimize()
on the generated module (which executes fine without optimization) runs into an assertion error. Running binaryen.readBinary(mod.emitBinary()).optimize()
works fine, and it passes mod.validate()
, so I’m not sure what the problem is. What could I be doing wrong that causes this?
The specific assertion failure is int(_id) == int(T::SpecificId)
. I can probably make a reproduction if totally necessary, but it’ll take a bit.
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 22 (15 by maintainers)
Oh, that’s extremely taboo.
Nope.
Then, in your project: