esmangle icon indicating copy to clipboard operation
esmangle copied to clipboard

error when mangle arrowfunctions

Open fishbar opened this issue 10 years ago • 0 comments

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

fishbar avatar Apr 06 '16 09:04 fishbar