new instantiation design alternatives

Kevin Smith zenparsing at gmail.com
Wed Sep 17 07:24:48 PDT 2014


>
>
>  That's not true, is it? Assuming someone (e.g. B) actually assigns a
> property of `this`, an error will occur (or worse, a global will be
> created, in sloppy mode).
>

Sorry, when I say "called", I mean called with a proper "this" variable.

Under the current system, constructors work as "this" initializers, with or
without "new".  Hopefully that explains my meaning a little better.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140917/84dba6c3/attachment.html>


More information about the es-discuss mailing list