This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21669 - Callable interface objects should be instance of Function
Summary: Callable interface objects should be instance of Function
Status: RESOLVED INVALID
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard: [v1]
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-11 22:12 UTC by Erik Arvidsson
Modified: 2013-08-04 07:35 UTC (History)
2 users (show)

See Also:


Attachments

Description Erik Arvidsson 2013-04-11 22:12:33 UTC
http://dev.w3.org/2006/webapi/WebIDL/#interface-object

> The internal [[Prototype]] property of an interface object for a callback interface must be the Object.prototype object.

Shouldn't this be Function.prototype and not Object.prototype?
Comment 1 Cameron McCormack 2013-04-11 22:36:26 UTC
No, callback interface objects aren't actually callable, and only exist to expose any consts that are declared on the object.  I attempted to clarify in https://bugs.webkit.org/show_bug.cgi?id=114465#c5.
Comment 2 Cameron McCormack 2013-08-04 07:35:37 UTC
Per the explanation, callback interface objects are not functions.