A new ES6 draft is available

Frankie Bagnardi f.bagnardi at gmail.com
Sat Jan 17 05:59:47 PST 2015


I'm also expecting a lot of questions about 'what is this new.target thing
in this code?', 'is new a variable?', 'where does it come from?', 'isn't
new an operator?', etc.

if (this instanceof MyDate) ...

... is clearer, but I guess it needs to be disallowed because of the other
rules.

On Fri, Jan 16, 2015 at 1:29 PM, Brendan Eich <brendan at mozilla.org> wrote:

> Gotta agree new.target is nicer to read and write!
>
> /be
>
> Allen Wirfs-Brock wrote:
>
>> err,
>>          try {
>>               let thisValue = this;  //can't reference 'this' prior to
>> 'super()' in a [[Construct]] call of a derived function
>>          } catch (e} {
>>             calledAsFunction = false  //no let here
>>         }
>>
>>  _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150117/b54c69a0/attachment-0001.html>


More information about the es-discuss mailing list