소스 검색

pastojs: fixed shortrefglobals for proc without args, issue #38043

git-svn-id: trunk@47335 -
(cherry picked from commit a2af4429f94b5dd88ca0b7cdcb42986f1bc52c53)
Mattias Gaertner 4 년 전
부모
커밋
10e29829ab
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      packages/pastojs/src/fppas2js.pp

+ 2 - 0
packages/pastojs/src/fppas2js.pp

@@ -9828,6 +9828,8 @@ var
       CreateProcedureCall(Call,nil,ProcType,AContext);
       if ApplyParam<>nil then
         begin
+        if Call.Args=nil then
+          Call.Args:=TJSArguments(CreateElement(TJSArguments,ProcType));
         Call.InsertArg(0,ApplyParam);
         ApplyParam:=nil;
         if AContext is TDotContext then