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
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
Whiteboard: [v1]
Depends on:
Reported: 2013-04-11 22:12 UTC by Erik Arvidsson
Modified: 2013-08-04 07:35 UTC (History)
2 users (show)

See Also:


Description Erik Arvidsson 2013-04-11 22:12:33 UTC

> 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
Comment 2 Cameron McCormack 2013-08-04 07:35:37 UTC
Per the explanation, callback interface objects are not functions.