Skip to content

error when mangle arrowfunctions #119

@fishbar

Description

@fishbar
var ls = (err, data) => {
  data += 1;
  if (err) {
    log.error(err);
    return err;
  }
  result = data;
  return data;
};

console.log(ls(null, 12));

lib/pass/remove-wasted-blocks.js should take care of arrowFunction expression

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions