From 1a815326c4f0f5fc20575c7d5efd2d7129851411 Mon Sep 17 00:00:00 2001 From: "M. Habib Rosyad" Date: Mon, 3 Aug 2020 22:46:02 +0700 Subject: [PATCH] fix missing semicolon --- src/compiler/compile/nodes/shared/Context.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/compile/nodes/shared/Context.ts b/src/compiler/compile/nodes/shared/Context.ts index 16abef27b2..271ccd4045 100644 --- a/src/compiler/compile/nodes/shared/Context.ts +++ b/src/compiler/compile/nodes/shared/Context.ts @@ -32,7 +32,7 @@ export function unpack_destructuring(contexts: Context[], node: Node, modifier: update_reference(contexts.slice(0, n), node, alternate); - return x`${modifier(node)}[${i}] !== undefined ? ${modifier(node)}[${i}] : ${alternate.replacement || alternate}` as Node + return x`${modifier(node)}[${i}] !== undefined ? ${modifier(node)}[${i}] : ${alternate.replacement || alternate}` as Node; }); } else { unpack_destructuring(contexts, element, node => x`${modifier(node)}[${i}]` as Node); @@ -61,7 +61,7 @@ export function unpack_destructuring(contexts: Context[], node: Node, modifier: update_reference(contexts.slice(0, n), node, alternate); - return x`${modifier(node)}.${key.name} !== undefined ? ${modifier(node)}.${key.name} : ${alternate.replacement || alternate}` as Node + return x`${modifier(node)}.${key.name} !== undefined ? ${modifier(node)}.${key.name} : ${alternate.replacement || alternate}` as Node; }); } else { unpack_destructuring(contexts, value, node => x`${modifier(node)}.${key.name}` as Node);