8000 Duplicate variable declarations with destructuring are partially converted to let/const · Issue #131 · lebab/lebab · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Duplicate variable declarations with destructuring are partially converted to let/const #131
Open
@nene

Description

@nene

For example, the below code should not be converted to let/const:

   var a = 1;
   var {a, b} = createObj();

Lebab understand that a is a repeated variable, but ignores the fact that b is declared together with it and attempts to convert it to const:

   var a = 1;
   const {a, b} = createObj();
3A8C

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0