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

git-svn-id: trunk@47335 -
This commit is contained in:
Mattias Gaertner 2020-11-07 11:04:43 +00:00
parent 280c0d90f7
commit a2af4429f9

View File

@ -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