hoist all hoistable top-level functions

pull/2363/head
John Chesley 6 years ago
parent 1098b6c1f5
commit 614788c9e8

@ -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