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.
11 lines
150 B
JavaScript
11 lines
150 B
JavaScript
function foo() {
|
|
arr.map(x => x * x);
|
|
var f = (x, y) => x * y;
|
|
(function () {
|
|
return () => this;
|
|
})();
|
|
return {
|
|
g: () => this
|
|
}
|
|
}
|