{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

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


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
-------------- 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