Skip to content

Commit 6ee9658

Browse files
committed
we only care about mutation, not reassignment
1 parent 79f9962 commit 6ee9658

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/visitors/shared

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export function validate_mutation(node, context, expression) {
308308
if (
309309
!context.state.options.dev ||
310310
is_ignored(node, 'ownership_invalid_mutation') ||
311-
(left.type !== 'Identifier' && left.type !== 'MemberExpression')
311+
left.type !== 'MemberExpression'
312312
) {
313313
return expression;
314314
}

0 commit comments

Comments
 (0)