wabt
wabt copied to clipboard
Fix implicit br return
An in-progress fix for #2304. For now, I believe it's working for any br depth. However, I'm not really sure how to handle the br_if case. Should it be replaced with an if and then a return? If so, I couldn't really find a way to create a new IfExpr and compile that on the fly. Maybe someone with more experience with the decompiler source code has a good way to do it.
I think this PR probably makes you the leading active wasm-decompiler person we have. :-) Your strategy sounds good but I don't think I have any better ideas...
Hmm ok. I'll work on finding a solution that works, then!