From a26c7824aca6991b447e3d4c183237b8b19ed75d Mon Sep 17 00:00:00 2001 From: John Chesley Date: Fri, 5 Apr 2019 22:26:51 -0400 Subject: [PATCH] hoist all hoistable top-level functions --- src/compile/Component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile/Component.ts b/src/compile/Component.ts index 21f0b6ef05..ccd5da26f3 100644 --- a/src/compile/Component.ts +++ b/src/compile/Component.ts @@ -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);