{this} object literal

Sam Gluck sdgluck at gmail.com
Fri Apr 21 17:57:49 UTC 2017


Regardless of whether `this` is permitted as the property name of an
object, why not use `console.log(this, arguments, externalVar)`? (Out of
interest)

On 21 Apr 2017 6:01 p.m., "Michał Wadas" <michalwadas at gmail.com> wrote:

Hi.

Is there any specific reason why {this} literal is forbidden? Babel had a
bug allowing this and it was pretty convenient to enter console.log({this,
arguments, externalVar}) for quick printing scope.

Michał Wadas

_______________________________________________
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/20170421/0902b39e/attachment-0001.html>


More information about the es-discuss mailing list