Before, the if a destructuring assignment expression was wrapped in parens, but also wrapped in braces because it was a brace-less if statement's body, the closing brace would end up before the closing parenthesis.
On the whole, magic-string seems to be scarily fragile for stuff like this, but this fix seems to address the problem.
See issue #152
Before, the if a destructuring assignment expression was wrapped in parens, but also wrapped in braces because it was a brace-less
if
statement's body, the closing brace would end up before the closing parenthesis.On the whole, magic-string seems to be scarily fragile for stuff like this, but this fix seems to address the problem.