mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +01:00
fix param names of instance methods. idx==0 is the this parameter.
This commit is contained in:
parent
b4ae2757c7
commit
2ebc771c55
@ -580,6 +580,7 @@ public class ModuleGenerator {
|
||||
if( !isStatic ) {
|
||||
StructType instanceType = types.valueOf( name.className );
|
||||
writer.writeMethodParam( "param", instanceType, "this" );
|
||||
paramCount++;
|
||||
}
|
||||
Iterator<AnyType> parser = name.getSignature( types );
|
||||
AnyType type;
|
||||
@ -598,9 +599,6 @@ public class ModuleGenerator {
|
||||
}
|
||||
}
|
||||
if( codeBuilder != null ) {
|
||||
if( !isStatic ) {
|
||||
paramCount++;
|
||||
}
|
||||
List<AnyType> localTypes = codeBuilder.getLocalTypes( paramCount );
|
||||
for( int i = 0; i < localTypes.size(); i++ ) {
|
||||
type = localTypes.get( i );
|
||||
|
Loading…
x
Reference in New Issue
Block a user