mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +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 ) );
|
methodOutput.append( "(import \"" ).append( importModule ).append( "\" \"" ).append( importName ).append( "\" (func $" ).append( normalizeName( name ) );
|
||||||
isImport = true;
|
isImport = true;
|
||||||
importCount++;
|
importCount++;
|
||||||
|
function = name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -332,6 +333,7 @@ public class TextModuleWriter extends ModuleWriter {
|
|||||||
inset--;
|
inset--;
|
||||||
newline( methodOutput );
|
newline( methodOutput );
|
||||||
methodOutput.append( ')' );
|
methodOutput.append( ')' );
|
||||||
|
function = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user