setPrototypeOf vs obj.__proto__ assignment

John Barton johnjbarton at
Mon Apr 7 11:02:59 PDT 2014

On Mon, Apr 7, 2014 at 10:51 AM, Andrea Giammarchi <
andrea.giammarchi at> wrote:

> ..
> It feels like everyone uses `__proto__` on daily basis while ES6 promotes
> classes ... so either `__proto__` is not a real world use case, or `class`
> landed for no reason, IMO.

You are correct, lots of code uses '__proto__', but your conclusions based
on this make no sense.  ES6 has nothing to say about daily use until it
ships in all relevant platforms, and the current count is zero.
Moreover, on platforms without setPrototypeOf(), it's advantages are not
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list