Skip to content

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

Closed
@davetayls

Description

@davetayls

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'; };

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions