From dea432b028962374f9bca682d915e74156a42ddd Mon Sep 17 00:00:00 2001 From: tanhauhau Date: Sun, 9 Jan 2022 00:50:10 +0800 Subject: [PATCH] fix ts --- src/compiler/compile/nodes/ConstTag.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/compiler/compile/nodes/ConstTag.ts b/src/compiler/compile/nodes/ConstTag.ts index 1128038058..052d563549 100644 --- a/src/compiler/compile/nodes/ConstTag.ts +++ b/src/compiler/compile/nodes/ConstTag.ts @@ -54,7 +54,12 @@ export default class ConstTag extends Node { } parse_expression() { - unpack_destructuring(this.contexts, this.node.expression.left); + unpack_destructuring({ + contexts: this.contexts, + node: this.node.expression.left, + scope: this.scope, + component: this.component, + }); this.expression = new Expression(this.component, this, this.scope, this.node.expression.right); this.contexts.forEach(context => { const owner = this.scope.get_owner(context.key.name);