mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 15:37:52 +01:00
return parameter type is written as "result" and not "return".
This commit is contained in:
parent
6a2e33ac8a
commit
5c7b7256c7
@ -214,7 +214,7 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod
|
|||||||
case "param":
|
case "param":
|
||||||
functionType.params.add( valueType );
|
functionType.params.add( valueType );
|
||||||
return;
|
return;
|
||||||
case "return":
|
case "result":
|
||||||
functionType.result = valueType;
|
functionType.result = valueType;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -255,7 +255,7 @@ public abstract class ModuleWriter implements Closeable {
|
|||||||
continue;
|
continue;
|
||||||
case ')':
|
case ')':
|
||||||
this.paramCount = paramCount - 1;
|
this.paramCount = paramCount - 1;
|
||||||
kind = "return";
|
kind = "result";
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
javaType = signature.substring( i, i + 1 );
|
javaType = signature.substring( i, i + 1 );
|
||||||
@ -269,7 +269,7 @@ public abstract class ModuleWriter implements Closeable {
|
|||||||
* Write a method parameter.
|
* Write a method parameter.
|
||||||
*
|
*
|
||||||
* @param kind
|
* @param kind
|
||||||
* "param", "return" or "local"
|
* "param", "result" or "local"
|
||||||
* @param valueType
|
* @param valueType
|
||||||
* the data type of the parameter
|
* the data type of the parameter
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
|
Loading…
x
Reference in New Issue
Block a user