print (table) in a new line

This commit is contained in:
Volker Berlin 2019-05-14 21:36:04 +02:00
parent f0d3027553
commit 45d1731126

View File

@ -103,6 +103,7 @@ public class TextModuleWriter extends ModuleWriter {
if( callIndirect ) {
int count = importCount + functionCount;
String countStr = Integer.toString( count );
newline( output );
output.append( "(table " ).append( countStr ).append( ' ' ).append( countStr ).append( " anyfunc)" );
newline( output );
output.append( "(elem (i32.const 0) " );