mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 18:44:47 +01:00
fix NPE with import functions
This commit is contained in:
parent
57a2bd0827
commit
b8b751f909
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user