From 185e3e98d3b812701d55fcfbea0381b0f1dbcde8 Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Sun, 9 Jun 2019 22:40:39 +0200 Subject: [PATCH] enable virtual methods/functions --- .../jwebassembly/module/WasmCallIndirectInstruction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/inetsoftware/jwebassembly/module/WasmCallIndirectInstruction.java b/src/de/inetsoftware/jwebassembly/module/WasmCallIndirectInstruction.java index 992d9d0..278d77a 100644 --- a/src/de/inetsoftware/jwebassembly/module/WasmCallIndirectInstruction.java +++ b/src/de/inetsoftware/jwebassembly/module/WasmCallIndirectInstruction.java @@ -84,7 +84,7 @@ class WasmCallIndirectInstruction extends WasmCallInstruction { */ @Override public void writeTo( @Nonnull ModuleWriter writer ) throws IOException { - if( virtualFunctionIdx < 0 || true ) { + if( virtualFunctionIdx < 0 ) { super.writeTo( writer ); } else { int tempVarIdx = localVariables.get( tempVar, getCodePosition() );