pull/4000/head
daszgfz 6 years ago
parent 91de025285
commit 6773affff1

@ -1096,7 +1096,7 @@ export default class Component {
} else if (owner === instance_scope) {
const variable = var_lookup.get(name);
if (variable.reassigned || variable.mutated) hoistable = false;
if (variable.reassigned || variable.mutated || variable.aliased) hoistable = false;
if (name === fn_declaration.id.name) return;
@ -1142,7 +1142,6 @@ export default class Component {
for (const [name, node] of top_level_function_declarations) {
if (is_hoistable(node)) {
const variable = this.var_lookup.get(name);
if (!variable.aliased) {
variable.hoistable = true;
hoistable_nodes.add(node);
@ -1152,7 +1151,6 @@ export default class Component {
}
}
}
}
extract_reactive_declarations() {
const component = this;

Loading…
Cancel
Save