mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-09-15 16:19:10 +02:00
System types like the string doesn't have a module information. Now the function is checking if is loaded to not raise any error.
This commit is contained in:
parent
8d87707e2d
commit
a9f23105b4
@ -2473,7 +2473,10 @@ end;
|
||||
|
||||
function TRttiType.GetDeclaringUnitName: String;
|
||||
begin
|
||||
Result := Handle.Module.Name;
|
||||
if Assigned(Handle.Module) then
|
||||
Result := Handle.Module.Name
|
||||
else
|
||||
Result := 'System';
|
||||
end;
|
||||
|
||||
function TRttiType.GetQualifiedName: String;
|
||||
|
Loading…
Reference in New Issue
Block a user