mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-25 09:10:13 +02:00
rtl: reuse existing rtticontext, still not Delphi compatible, issue 38812, from Henrique Gottardi Werlang
This commit is contained in:
parent
e36441b661
commit
0dd3a997c1
@ -1187,13 +1187,13 @@ begin
|
||||
Name:=t.Name;
|
||||
if isModule(t.Module) then
|
||||
Name:=t.Module.Name+'.'+Name;
|
||||
if FPool.hasOwnProperty(Name) then
|
||||
Result:=TRttiType(FPool[Name])
|
||||
if GRttiContext.FPool.hasOwnProperty(Name) then
|
||||
Result:=TRttiType(GRttiContext.FPool[Name])
|
||||
else
|
||||
begin
|
||||
Result := RttiTypeClass[T.Kind].Create(aTypeInfo);
|
||||
|
||||
FPool[Name]:=Result;
|
||||
GRttiContext.FPool[Name]:=Result;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user