File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/svelte/src/compiler/phases/2-analyze Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -409,10 +409,10 @@ export function analyze_component(root, options) {
409
409
analysis . reactive_statements = order_reactive_statements ( analysis . reactive_statements ) ;
410
410
}
411
411
412
- // warn on any nonstate declarations that are a) reassigned and mutated and b) referenced in the template
412
+ // warn on any nonstate declarations that are a) reassigned and b) referenced in the template
413
413
for ( const scope of [ module . scope , instance . scope ] ) {
414
414
outer: for ( const [ name , binding ] of scope . declarations ) {
415
- if ( binding . kind === 'normal' && binding . reassigned && binding . mutated ) {
415
+ if ( binding . kind === 'normal' && binding . reassigned ) {
416
416
for ( const { path } of binding . references ) {
417
417
if ( path [ 0 ] . type !== 'Fragment' ) continue ;
418
418
for ( let i = 1 ; i < path . length ; i += 1 ) {
You can’t perform that action at this time.
0 commit comments