Skip to content

Commit 15931af

Browse files
authored
Merge pull request #2082 from sveltejs/gh-2076
fix #2076
2 parents 94dfeec + a8fcc72 commit 15931af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compile/render-dom/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export default function dom(
182182
if (owner && owner !== component.instance_scope) return;
183183

184184
const variable = component.var_lookup.get(name);
185-
if (variable && variable.hoistable || variable.global || variable.module) return;
185+
if (variable && (variable.hoistable || variable.global || variable.module)) return;
186186

187187
pending_assignments.add(name);
188188
component.has_reactive_assignments = true;

0 commit comments

Comments
 (0)