* Patch from Henrique Werlang to implement TValue.Empty

This commit is contained in:
michael 2020-09-25 11:25:01 +00:00
parent 3c0385af7a
commit e3f828a8ef

View File

@ -63,6 +63,7 @@ type
//ToDo: procedure SetArrayElement(aIndex: SizeInt; constref AValue: TValue);
function IsType(ATypeInfo: PTypeInfo): boolean;
function AsJSValue: JSValue;
class function Empty: TValue; static;
end;
TRttiType = class;
@ -670,6 +671,11 @@ begin
Result := FData;
end;
class function TValue.Empty: TValue;
begin
Result.FTypeInfo := nil;
end;
{ TRttiStructuredType }
function TRttiStructuredType.GetMethods: TRttiMethodArray;