pastojs: fixed empty except on statement

git-svn-id: trunk@40084 -
This commit is contained in:
Mattias Gaertner 2018-10-29 17:23:42 +00:00
parent 8554623084
commit e539a385e4

View File

@ -18501,7 +18501,8 @@ begin
CreatePrimitiveDotExpr(FBuiltInNames[pbivnExceptObject],El),El);
ListFirst.A:=V;
// add statements
AddToStatementList(ListFirst,ListLast,ConvertElement(El.Body,AContext),El);
if El.Body<>nil then
AddToStatementList(ListFirst,ListLast,ConvertElement(El.Body,AContext),El);
end
else if El.Body<>nil then
// add statements