Skip to content

var assignment destructuring minifies to wrong syntax #710

@anilanar

Description

@anilanar

Input Code

if (false) {
  var {x, y} = foo();
}

Actual Output

var{x,y};

Expected Output

var x,y;

Details

This bug is annoying especially when you disable scoped variables due to Safari bugs related to for statements with scoped variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bughas PRHas an open PR that fixes this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions