mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
revert registering function StringTable.stringConstant
This commit is contained in:
parent
3e5d966548
commit
a32b3af059
@ -116,7 +116,6 @@ public class ModuleGenerator {
|
||||
scanLibraries( libraries );
|
||||
|
||||
//register some synthetic functions
|
||||
strings.getStringConstantFunction();
|
||||
types.getTypeTableMemoryOffsetFunctionName();
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,8 @@ public class StringManager extends LinkedHashMap<String, Integer> {
|
||||
return "i32.const " + stringMemoryOffset;
|
||||
}
|
||||
};
|
||||
functions.addReplacement( offsetFunction, null );
|
||||
functions.markAsNeededAndReplaceIfExists( offsetFunction );
|
||||
functions.markAsNeeded( stringConstantFunction, false );
|
||||
}
|
||||
|
||||
return stringConstantFunction;
|
||||
|
Loading…
x
Reference in New Issue
Block a user