mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 01:39:27 +02:00
fcl-js: fixed compile with pas2js
This commit is contained in:
parent
51ce1e883f
commit
925dc4bc75
@ -3543,7 +3543,7 @@ end;
|
||||
|
||||
{ TJSFunction }
|
||||
|
||||
destructor TJSFunctionDeclarationStatement.Destroy;
|
||||
destructor TJSFunctionStatement.Destroy;
|
||||
begin
|
||||
FreeAndNil(FFuncDef);
|
||||
inherited Destroy;
|
||||
@ -3607,7 +3607,7 @@ Var
|
||||
begin
|
||||
FParams.Clear;
|
||||
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;
|
||||
|
||||
{ TJSBracketMemberExpression }
|
||||
|
Loading…
Reference in New Issue
Block a user