hoist all hoistable top-level functions

pull/7738/head
John Chesley 7 years ago
parent f10878f644
commit a26c7824ac

@ -1023,7 +1023,7 @@ export default class Component {
};
for (const [name, node] of top_level_function_declarations) {
if (!checked.has(node) && is_hoistable(node)) {
if (is_hoistable(node)) {
const variable = this.var_lookup.get(name);
variable.hoistable = true;
hoistable_nodes.add(node);

Loading…
Cancel
Save