pull/13830/head
Dominic Gannaway 2 years ago
parent d48e9476a8
commit 3194a79453

@ -146,9 +146,7 @@ export function build_component(node, component_name, context, anchor = context.
return (
n.type === 'ExpressionTag' &&
n.expression.type !== 'Identifier' &&
n.expression.type !== 'MemberExpression' &&
n.expression.type !== 'UpdateExpression' &&
n.expression.type !== 'AssignmentExpression'
n.expression.type !== 'MemberExpression'
);
});

@ -314,7 +314,7 @@ export function apply(
if (typeof handler === 'function') {
handler.apply(element, args);
} else if (has_side_effects || handler != null) {
} else if (has_side_effects || handler != null || error) {
const filename = component?.[FILENAME];
const location = loc ? ` at ${filename}:${loc[0]}:${loc[1]}` : ` in ${filename}`;

Loading…
Cancel
Save