Trying to return object to javascript variable,
-----------------
TCefRTTIExtension.Register('app', TTestExtension);
TTestExtension = class
class function hello: string;
class function hello2: ICefv8value;
end;
...
implementation
------------------
class function TTestExtension.hello2: ICefv8value;
var
ret: ICefv8Value;
begin
ret := TCefv8ValueRef.NewArray(2);
ret.SetValueByIndex(0,TCefv8ValueRef.NewString('document.URL'));
ret.SetValueByIndex(1,TCefv8ValueRef.NewString('document.URL'));
result := TCefv8ValueRef.NewObject(nil);
result.SetUserData(ret);
end;
------------------
but in console function return empty object.
Original issue reported on code.google.com by amphilim...@gmail.com on 21 Aug 2014 at 5:01
Original issue reported on code.google.com by
amphilim...@gmail.com
on 21 Aug 2014 at 5:01