mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 07:23:48 +02:00
pastojs: fixed rtti property override
git-svn-id: trunk@36783 -
This commit is contained in:
parent
1ff7f061ff
commit
c77b403928
@ -9570,6 +9570,7 @@ var
|
||||
Flags: Integer;
|
||||
GetterPas, StoredPas, SetterPas: TPasElement;
|
||||
ResultTypeInfo: TJSElement;
|
||||
VarType: TPasType;
|
||||
begin
|
||||
Result:=nil;
|
||||
OptionsEl:=nil;
|
||||
@ -9596,7 +9597,8 @@ begin
|
||||
Call.AddArg(CreateLiteralNumber(Prop,Flags));
|
||||
|
||||
// add resulttype
|
||||
ResultTypeInfo:=CreateTypeInfoRef(Prop.VarType,AContext,Prop);
|
||||
VarType:=AContext.Resolver.GetPasPropertyType(Prop);
|
||||
ResultTypeInfo:=CreateTypeInfoRef(VarType,AContext,Prop);
|
||||
if ResultTypeInfo<>nil then
|
||||
Call.AddArg(ResultTypeInfo)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user