* Patch from Henrique Werlang to expose JSValue (bug ID 37597)

This commit is contained in:
michael 2020-08-20 07:27:45 +00:00
parent 1572f8e05f
commit 5ceedc6bc3

View File

@ -61,6 +61,7 @@ type
function GetArrayElement(aIndex: SizeInt): TValue;
//ToDo: procedure SetArrayElement(aIndex: SizeInt; constref AValue: TValue);
function IsType(ATypeInfo: PTypeInfo): boolean;
function AsJSValue: JSValue;
end;
TRttiType = class;
@ -511,6 +512,11 @@ begin
end;
end;
function TValue.AsJSValue: JSValue;
begin
Result := FData;
end;
{ TRttiInstanceType }
function TRttiInstanceType.GetClassTypeInfo: TTypeInfoClass;