[Bug 20653] Function object doesn't specify needing a "prototype" property

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20653

--- Comment #4 from Boris Zbarsky <bzbarsky@mit.edu> ---
Indeed.  And there are certainly plenty of prototype-less Functions around
right now in WebIDL too:

[20:09:43.043] Object.getOwnPropertyDescriptor(Array.prototype.push,
"prototype")
[20:09:43.045] undefined
--
[20:09:52.795] Object.getOwnPropertyDescriptor(document.getElementById,
"prototype")
[20:09:52.797] undefined

compared to:

[20:11:44.744] Object.getOwnPropertyDescriptor(EventTarget, "prototype")
[20:11:44.747] ({configurable:false, enumerable:false,
value:{addEventListener:function addEventListener() {
    [native code]
}, removeEventListener:function removeEventListener() {
    [native code]
}, dispatchEvent:function dispatchEvent() {
    [native code]
}}, writable:false})

What we sorta want is a place defining interface objects that Web Components
can link to....

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Saturday, 12 January 2013 01:12:46 UTC