From 67a9711d058a3843e293e613fa404bb822025766 Mon Sep 17 00:00:00 2001 From: iLTeoooD Date: Mon, 15 Mar 2021 22:56:48 +0100 Subject: [PATCH] Block chunks init push --- src/compiler/compile/nodes/shared/Expression.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compiler/compile/nodes/shared/Expression.ts b/src/compiler/compile/nodes/shared/Expression.ts index 9046917edb..86165e57e5 100644 --- a/src/compiler/compile/nodes/shared/Expression.ts +++ b/src/compiler/compile/nodes/shared/Expression.ts @@ -390,9 +390,7 @@ export default class Expression { if (declarations.length > 0) { block.maintain_context = true; - declarations.forEach(declaration => { - block.chunks.init.push(declaration); - }); + block.chunks.init.push(...declarations); } return (this.manipulated = node as Node);