Should host objects be able to have [[Class]] "Function", "Array" etc.?

Mark S. Miller erights at
Thu Nov 20 11:19:19 PST 2008

On Thu, Nov 20, 2008 at 1:43 AM, Maciej Stachowiak <mjs at> wrote:

> If all non-ECMAScript-coded methods in the DOM, or other add-on interfaces,
> can be Native internal functions rather than Host objects, even if they have
> behavior that does not match any predefined native Function, then I am not
> sure what a requirement for Host objects not to have [[Class]] "Function"
> would achieve.

Native internal functions are still required to satisfy the function
contract, including that they inherit from a Function.prototype, while host
objects are exempt from almost any contractual terms. The requirement would
mean that [[Class]] "Function" becomes a reliable indicator that we have an
object that obeys the function contract.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Es-discuss mailing list