mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 15:39:29 +02:00
fcl-js: jswriter: if-else: use bfalse position
git-svn-id: trunk@37240 -
This commit is contained in:
parent
8a9ddd8eb4
commit
6791127952
@ -1100,9 +1100,9 @@ begin
|
||||
Writeln('}');
|
||||
end;
|
||||
end;
|
||||
Writer.CurElement:=El;
|
||||
if HasBFalse then
|
||||
begin
|
||||
Writer.CurElement:=El.BFalse;
|
||||
if not HasBTrue then
|
||||
begin
|
||||
if C then
|
||||
@ -1114,7 +1114,9 @@ begin
|
||||
Write(' ');
|
||||
Write('else ');
|
||||
WriteJS(El.BFalse)
|
||||
end;
|
||||
end
|
||||
else
|
||||
Writer.CurElement:=El;
|
||||
end;
|
||||
|
||||
procedure TJSWriter.WriteForInStatement(El: TJSForInStatement);
|
||||
|
Loading…
Reference in New Issue
Block a user