Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when mangle arrowfunctions #119

Open
fishbar opened this issue Apr 6, 2016 · 0 comments
Open

error when mangle arrowfunctions #119

fishbar opened this issue Apr 6, 2016 · 0 comments

Comments

@fishbar
Copy link

fishbar commented Apr 6, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant