Skip to content

Commit ee17551

Browse files
committed
🐛 fix(parser): now increments are postfix
Signed-off-by: FurryR <awathefox@gmail.com>
1 parent 9abe64d commit ee17551

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ export function toSource(node: ASTNode, indent = 2, semi = false): string {
14501450
case 'IncrementStatement': {
14511451
const inc = node as IncrementStatement
14521452
const target = toSourceImpl(inc.target, level)
1453-
const stmt = `${inc.operator}${target}`
1453+
const stmt = `${target}${inc.operator}`
14541454
return useSemi ? stmt + ';' : stmt
14551455
}
14561456

0 commit comments

Comments
 (0)