On 04/03/2015, at 20:13, Matthew Robb wrote:

> Making the following two things no longer interchangeable completely breaks 
> my mental model for JS:
> ```
> var x = new X;
> ```
> and
> ```
> var x = {}; X.call(x);
> ```

This has never been the same and it isn't interchangeable. In one case the 
prototype is X.prototype and in the other it's Object.prototype.

Have you never seen this line in constructors?

if ( !( this instanceof X ) ) return new X(a.copy.of.the.arguments.goes.here);

-- 
( Jorge )();

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to