Skip to content

[Emit] New should not be used as a name of function expression when emitting accessors #43

@mhegazy

Description

@mhegazy

tests\cases\conformance\types\typeRelationships\typeAndMemberIdentity\objectTypesIdentityWithConstructSignatures2.js

new compiler generates invalid code:

var b = { new: function new(x) {
return '';
} };

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions