Skip to content

Commit b9a84a5

Browse files
committed
check if module_scope is defined
1 parent 9777fcd commit b9a84a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/compile/Component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ export default class Component {
803803
const variable = component.var_lookup.get(name);
804804
variable[deep ? 'mutated' : 'reassigned'] = true;
805805
}
806-
} else if (module_scope.has(name)) {
806+
} else if (module_scope && module_scope.has(name)) {
807807
const variable = component.var_lookup.get(name);
808808
variable[deep ? 'mutated' : 'reassigned'] = true;
809809
}

0 commit comments

Comments
 (0)