What is the difference between `newTarget` and `F` in abstract operation `Construct(..)` ?
coolwust at gmail.com
Mon Mar 16 17:32:17 UTC 2015
>From ES 6, section 7.3.14, there is an abstract operation `Construct (F,
[argumentsList], [newTarget])`, so if I have the following code `var foo =
new bar()`, then `newTarget` is the same as `F`, which is `bar`.
My question is, in what situation, `F` is **NOT** the same as `newTarget`?
And what is `newTarget` really?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss