Skip to content

Empty destructuring pattern emits invalid JS #3893

Description

@gustavderdrache

The following code:

var a: any;

({} = a);
([] = a);

({}) => { };
([]) => { };

Outputs empty lists:

var a;
(, a);
(, a);
(function (_a) {
    var ;
});
(function (_a) {
    var ;
});

Metadata

Metadata

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