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

Brendan Eich brendan at mozilla.com
Mon Oct 1 12:24:53 PDT 2012


Oliver Hunt wrote:
>   FooPrototype being an instance of Foo makes things more complicated for no obvious reason, and is only really used by conformance suites anyway :D

That's true enough.

The dubious backward compatibility claims are what they are, though, and 
try inducting a bit: class C extends B {}. What is C.prototype an 
instance of?

/be


More information about the es-discuss mailing list