Merge pull request #2195 from sveltejs/reactive-update-expression

make foo += 1 equivalent to foo = foo + 1 in reactive statements
pull/2198/head
Rich Harris 6 years ago committed by GitHub
commit 00df135283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1028,7 +1028,6 @@ export default class Component {
assignees.add(identifier.name);
} else if (node.type === 'UpdateExpression') {
const identifier = getObject(node.argument);
assignee_nodes.add(identifier);
assignees.add(identifier.name);
} else if (isReference(node, parent)) {
const identifier = getObject(node);

Loading…
Cancel
Save