mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-06-06 14:48:09 +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;
|
function GetArrayElement(aIndex: SizeInt): TValue;
|
||||||
//ToDo: procedure SetArrayElement(aIndex: SizeInt; constref AValue: TValue);
|
//ToDo: procedure SetArrayElement(aIndex: SizeInt; constref AValue: TValue);
|
||||||
function IsType(ATypeInfo: PTypeInfo): boolean;
|
function IsType(ATypeInfo: PTypeInfo): boolean;
|
||||||
|
function AsJSValue: JSValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TRttiType = class;
|
TRttiType = class;
|
||||||
@ -511,6 +512,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TValue.AsJSValue: JSValue;
|
||||||
|
begin
|
||||||
|
Result := FData;
|
||||||
|
end;
|
||||||
|
|
||||||
{ TRttiInstanceType }
|
{ TRttiInstanceType }
|
||||||
|
|
||||||
function TRttiInstanceType.GetClassTypeInfo: TTypeInfoClass;
|
function TRttiInstanceType.GetClassTypeInfo: TTypeInfoClass;
|
||||||
|
Loading…
Reference in New Issue
Block a user