butternut
butternut copied to clipboard
preserve parens around async destructuring arrow functions (fixes #170)
Explanation for this edge case: left parens is part of an arrow function expression unless it is async. Thus instead of comparing this.params[0].start, c and this.start with each other to figure out start/end indices of removal, it makes more sense to overwrite everything between c and this.params[0].start with (.