Must built-in prototypes also be valid instances? (Was: Why DataView.prototype object's [[Class]] is "Object"?)

Erik Arvidsson erik.arvidsson at gmail.com
Mon Oct 1 13:03:19 PDT 2012


On Mon, Oct 1, 2012 at 3:30 PM, Brendan Eich <brendan at mozilla.com> wrote:
> Erik Arvidsson wrote:
>>
>> I'm with Allen, Andreas and others that the craziness needs to stop.
>
>
> Which craziness?

That the prototype of the constructor needs to be a special case of
the instances created by the constructor.

Today, both "new Date" and "Date.prototype" are date objects. I think
this just makes things more complicated for no apparent gain.

-- 
erik


More information about the es-discuss mailing list