Skip to content

[BUG] binding properties are incorrectly minified #1586

@vouillon

Description

@vouillon

Describe the bug
Consider this piece of code:

function f (x) {
  let {toto} = x;
  return toto
}

It is minified into:

function
f(a){let{b}=a;return b}

which is not correct.

Expected behavior
Js_of_ocaml 5.4.0 outputs this result which is correct

function
f(a){let{toto:b}=a;return b}

Versions
This is with Js_of_ocaml 5.6.0.

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