Fix some parens cases for UpdateExpressions (#381)

This commit is contained in:
Brian Ng authored and Christopher Chedeau committed 2017-01-21 20:14:22 -08:00
1 parent 40748a2dc9
commit e31203f4bf
3 files changed
+18 -1

No files matched your search

@@ -1,6 +1,10 @@
exports[`test update_expression.js 1`] = `
"(this.x++).toString()
new (r++);
(x++)();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(this.x++).toString();
new (r++)();
(x++)();
"
`;
@@ -1 +1,3 @@
(this.x++).toString()
new (r++);
(x++)();