[webkit-dev] call JS function using JSValue object

Honey honeysaini88 at gmail.com
Tue Feb 4 06:18:57 PST 2014


My javascript code looks like
>> function Player() { this.speed = 5; this.x = 50; this.y = 50;
this.getType = function(){
return this.x;
}
>> }

var p = new Player();
setObject(p);

i have exposed function setObject() through webkit idl and i am getting the p object as JSValue object.
How can i call getType() through this JSValue object??

Thanks in advance.

Sent from my iPad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20140204/3c7233c3/attachment.html>


More information about the webkit-dev mailing list