mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-09-02 17:10:15 +02:00
* Patch from Henrique Werlang to implement TValue.Empty
This commit is contained in:
parent
3c0385af7a
commit
e3f828a8ef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user