mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
Struct type variables must declared as ref
This commit is contained in:
parent
97e3c9616f
commit
cc0ba1498d
@ -216,7 +216,13 @@ public class TextModuleWriter extends ModuleWriter {
|
|||||||
methodParamNames.add( name );
|
methodParamNames.add( name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
methodOutput.append( ' ' ).append( normalizeName( valueType.toString() ) ).append( ')' );
|
methodOutput.append( ' ' );
|
||||||
|
if( valueType.getCode() < 0 ) {
|
||||||
|
methodOutput.append( valueType );
|
||||||
|
} else {
|
||||||
|
methodOutput.append( "(ref " ).append( normalizeName( valueType.toString() ) ).append( ')' );
|
||||||
|
}
|
||||||
|
methodOutput.append( ')' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user