Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Oct 23, 2024
1 parent d48e947 commit 3194a79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/src/internal/client/dom/elements/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;

Expand Down

0 comments on commit 3194a79

Please sign in to comment.