While it may appear that this should be done by es2015-function-name, another way to think about it is that es2015-function-name implements the naming that javascript engines are supposed to do; and javascript engines cannot name function expressions that are the object of a member expression.
16 lines
315 B
JavaScript
16 lines
315 B
JavaScript
var _this = this;
|
|
|
|
[].map(function (x) {
|
|
babelHelpers.newArrowCheck(this, _this);
|
|
return x;
|
|
}.bind(this));
|
|
|
|
const f = function f(x) {
|
|
babelHelpers.newArrowCheck(this, _this);
|
|
return x;
|
|
}.bind(this);
|
|
|
|
const o = { k: function k(x) {
|
|
babelHelpers.newArrowCheck(this, _this);
|
|
return x;
|
|
}.bind(this) }; |