Files
babel/packages/babel-plugin-transform-es2015-function-name/test/fixtures/issues/5004/expected.js
Diogo Franco (Kovensky) ccf2f56085 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
2016-12-16 11:14:47 +09:00

2 lines
64 B
JavaScript

export const x = ({ x }) => x;
export const y = function y() {};