Given an expression of the form (a++).toString(), pretty-printing removes the parentheses around the operator expression, transforming it to a++.toString().
When that output is evaluated, a SyntaxError or ReferenceError is thrown for postfix and prefix operators respectively.
Given an expression of the form
(a++).toString()
, pretty-printing removes the parentheses around the operator expression, transforming it toa++.toString()
.When that output is evaluated, a SyntaxError or ReferenceError is thrown for postfix and prefix operators respectively.
recast@0.23.4