|
@@ -671,9 +671,12 @@ uses
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure TWasmFuncType.add_param(param: TWasmBasicType);
|
|
procedure TWasmFuncType.add_param(param: TWasmBasicType);
|
|
|
|
+ var
|
|
|
|
+ len : integer;
|
|
begin
|
|
begin
|
|
- SetLength(params,Length(params)+1);
|
|
|
|
- params[High(params)]:=param;
|
|
|
|
|
|
+ len:=Length(params);
|
|
|
|
+ SetLength(params,len+1);
|
|
|
|
+ params[len]:=param;
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure TWasmFuncType.add_result(res: TWasmBasicType);
|
|
procedure TWasmFuncType.add_result(res: TWasmBasicType);
|