Diogo Franco 86a53773f1 Add function name to spec-transformed arrow functions (#5620)
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.
2017-05-03 11:50:37 +09:00

5 lines
135 B
JavaScript

// These are actually handled by transform-es2015-arrow-function
const x = () => x;
const y = x => x();
const z = { z: () => y(x) }.z;