mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-06-02 04:02:30 +02:00
* Patch from Henrique Werlang to expose JSValue (bug ID 37597)
This commit is contained in:
parent
1572f8e05f
commit
5ceedc6bc3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user