mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14: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) {
|
WasmBlock targetBlock) {
|
||||||
var exceptionType = ValueType.object(tryCatch.getExceptionType());
|
var exceptionType = ValueType.object(tryCatch.getExceptionType());
|
||||||
var isMatched = generateInstanceOf(new WasmGetLocal(exceptionVar), exceptionType);
|
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) {
|
private void visitMany(List<Statement> statements, List<WasmExpression> target) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user