mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
Webassembly only know i16 and not u16.
This commit is contained in:
parent
536fe8385f
commit
2e3b1fc311
@ -322,7 +322,8 @@ public class TextModuleWriter extends ModuleWriter {
|
|||||||
*/
|
*/
|
||||||
private void writeTypeName( Appendable output, AnyType type ) throws IOException {
|
private void writeTypeName( Appendable output, AnyType type ) throws IOException {
|
||||||
if( !type.isRefType() ) {
|
if( !type.isRefType() ) {
|
||||||
output.append( type.toString() );
|
String name = type == ValueType.u16 ? "i16" : type.toString();
|
||||||
|
output.append( name );
|
||||||
} else if( options.useGC() ) {
|
} else if( options.useGC() ) {
|
||||||
//output.append( ValueType.eqref.toString() );
|
//output.append( ValueType.eqref.toString() );
|
||||||
output.append( "(ref null " ).append( normalizeName( type.toString() ) ).append( ')' );
|
output.append( "(ref null " ).append( normalizeName( type.toString() ) ).append( ')' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user