W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2012

Re: [WebIDL] Interface object prototype and function object

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 03 Oct 2012 11:57:06 -0400
Message-ID: <506C6052.2050403@mit.edu>
To: public-webapps@w3.org
On 10/3/12 11:43 AM, Philippe Le Hegaret wrote:
> In
>   http://dev.w3.org/2006/webapi/WebIDL/
>
> section 4.4.1 says: "The interface object for a given non-callback
> interface is a function object."
>
> section 4 says: "If an object is defined to be a function object, then
> it has characteristics as follows: Its [[Prototype]] internal property
> is the Function prototype object.[...]"
>
> Does this mean that:
>   typeof Document.prototype should return "function" ?
>
> If not, I'm wondering what I'm missing...

It means that "Object.getPrototypeOf(Document) === Function.prototype" 
should test true.

I'm not quite sure what you're missing, because I don't understand how 
you went from "[[Prototype]] internal property" to ".prototype".

-Boris
Received on Wednesday, 3 October 2012 15:57:41 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:55 GMT