[webkit-dev] prototypes and host objects

Allison Newman demallien at mac.com
Thu Feb 11 01:21:19 PST 2010

Ahhh, ok.  Sorry for that.  I had understood that webkit-help was more  
for questions about attacking the "internal-facing" interfaces of  
Webkit - use of the DOM, CSS, Javascript programming and such.   
Anyhow, I guess I'll know better next time round!

Thankyou very much for the help Darin, I managed to get my code  
working after making the minor change that you suggested.


Le 10 févr. 10 à 17:33, Darin Adler a écrit :

> This is a question for webkit-help, not webkit-dev. The webkit-dev  
> mailing list is for discussion of development of WebKit, not for use  
> of WebKit.
> See <http://webkit.org/contact.html> for this.
> I can’t resist answering this one, though. Next time I will not  
> answer this kind of question on this mailing list.
> On Feb 10, 2010, at 6:58 AM, Allison Newman wrote:
>> host_object.prototype resolves as [undefined].
> This is one of the curious things about JavaScript language. The  
> property named “prototype” does not return the prototype of an  
> object. Instead it is the prototype for use when using that object  
> as a constructor with the new operator. The “prototype” property a  
> plain old property like any other, and if you want to set it up you  
> can do it in your JSClassDefinition just like other properties.
> The syntax host_object.__proto__ will give you the prototype of  
> host_object.
>    -- Darin

More information about the webkit-dev mailing list