Skip to content

Arrow functions attached to a const compiled to ES5 should be named #15927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
davetayls opened this issue May 18, 2017 · 2 comments
Closed

Arrow functions attached to a const compiled to ES5 should be named #15927

davetayls opened this issue May 18, 2017 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@davetayls
Copy link

TypeScript Version: 2.3.2

Code

const myName = () => 'hello';

Expected behavior:

The resulting es5 JavaScript should be

var myName = function myName() { return 'hello'; };

Actual behavior:

var myName = function () { return 'hello'; };
@MasterCassim
Copy link

MasterCassim commented May 18, 2017

Duplicate of #15871, #6433

@davetayls
Copy link
Author

Thanks @MasterCassim I didn't find those in my search

@mhegazy mhegazy added the Duplicate An existing issue was already created label May 18, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants