mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 00:04:10 -08:00
Fix old Wasm backend
This commit is contained in:
parent
6968e2cee4
commit
29339f3fbc
|
@ -1333,7 +1333,9 @@ public abstract class BaseWasmGenerationVisitor implements StatementVisitor, Exp
|
|||
WasmBlock targetBlock) {
|
||||
var exceptionType = ValueType.object(tryCatch.getExceptionType());
|
||||
var isMatched = generateInstanceOf(new WasmGetLocal(exceptionVar), exceptionType);
|
||||
target.add(new WasmBranch(isMatched, targetBlock));
|
||||
var br = new WasmBranch(isMatched, targetBlock);
|
||||
br.setResult(new WasmGetLocal(exceptionVar));
|
||||
target.add(new WasmDrop(br));
|
||||
}
|
||||
|
||||
private void visitMany(List<Statement> statements, List<WasmExpression> target) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user