summaryrefslogtreecommitdiff
path: root/test/wasm2js/excess_fallthrough.2asm.js
Commit message (Collapse)AuthorAgeFilesLines
* DCE at the end of wasm2js (#2574)Alon Zakai2020-01-061-15/+13
| | | | | | By doing so we ensure that our calls to convert wasm types to JS types never try to convert an unreachable. Fixes #2558
* wasm2js: Fix switch lowering, don't fall through after the hoisted parts (#2301)Alon Zakai2019-08-161-0/+55
The switch lowering will "hoist" blocks of code into the JS switch when it can. If it can hoist some but not others, it must not fall through into those others (while it can fall through the hoisted ones - they began as nested blocks with falling-through between them). To fix this, after the hoisted ones issue a break out of the switch (which now contains all the hoisted code, so breaking out of it gets to the code right after the hoisted ones). fixes #2300