fix NPE with import functions

This commit is contained in:
Volker Berlin 2019-06-02 11:01:53 +02:00
parent 57a2bd0827
commit b8b751f909

View File

@ -201,6 +201,7 @@ public class TextModuleWriter extends ModuleWriter {
methodOutput.append( "(import \"" ).append( importModule ).append( "\" \"" ).append( importName ).append( "\" (func $" ).append( normalizeName( name ) );
isImport = true;
importCount++;
function = name;
}
}
@ -332,6 +333,7 @@ public class TextModuleWriter extends ModuleWriter {
inset--;
newline( methodOutput );
methodOutput.append( ')' );
function = null;
}
/**