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 <[email protected]> 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
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to