mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 18:10:23 +02:00
fcl-js: fixed compile with pas2js
This commit is contained in:
parent
51ce1e883f
commit
925dc4bc75
@ -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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user