fcl-js: fixed compile with pas2js

This commit is contained in:
mattias 2022-02-12 21:13:41 +01:00
parent 51ce1e883f
commit 925dc4bc75

View File

@ -3543,7 +3543,7 @@ end;
{ TJSFunction } { TJSFunction }
destructor TJSFunctionDeclarationStatement.Destroy; destructor TJSFunctionStatement.Destroy;
begin begin
FreeAndNil(FFuncDef); FreeAndNil(FFuncDef);
inherited Destroy; inherited Destroy;
@ -3607,7 +3607,7 @@ Var
begin begin
FParams.Clear; FParams.Clear;
For I:=0 to TypedParams.Count-1 do For I:=0 to TypedParams.Count-1 do
FParams.Add(UTF8Encode(TypedParams.Names[i])); FParams.Add({$ifdef FPC_HAS_CPSTRING}UTF8Encode(TypedParams.Names[i]){$ELSE}TypedParams.Names[i]{$ENDIF});
end; end;
{ TJSBracketMemberExpression } { TJSBracketMemberExpression }