mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 15:49:26 +02:00
pastojs: fixed shortrefglobals for proc without args, issue #38043
git-svn-id: trunk@47335 -
This commit is contained in:
parent
280c0d90f7
commit
a2af4429f9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user