<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>My javascript code looks like</div><div><blockquote type="cite"><blockquote type="cite"><font color="#000000"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">function Player() { this.speed = 5; this.x = 50; this.y = 50;</span></font></blockquote></blockquote>this.getType = function(){</div><div>return this.x;</div><div>}</div><div><blockquote type="cite"><blockquote type="cite"><font color="#000000"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"> }</span></font></blockquote></blockquote><div><br></div><div>var p = new Player();</div><div>setObject(p);</div><div><br></div>i have exposed function setObject() through webkit idl and i am getting the p object as JSValue object.</div><div>How can i call getType() through this JSValue object??</div><div><br></div><div>Thanks in advance.<br><br><span style="-webkit-text-size-adjust: auto;">Sent from my iPad</span></div></body></html>