Don't try to visit ArrowFunctionExpression, they cannot be named
They will still be visited if the arrow functions are transformed to regular functions. Fixes #5004
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
const x = () => x;
|
||||
const y = x => x();
|
||||
const z = { z: () => y(x) }.z;
|
||||
@@ -0,0 +1,9 @@
|
||||
const x = function x() {
|
||||
return x;
|
||||
};
|
||||
const y = function y(x) {
|
||||
return x();
|
||||
};
|
||||
const z = { z: function z() {
|
||||
return y(x);
|
||||
} }.z;
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers", "transform-es2015-function-name", "transform-es2015-arrow-functions"]
|
||||
}
|
||||
Reference in New Issue
Block a user