Skip to content

Commit 3194a79

Browse files
committed
feedback
1 parent d48e947 commit 3194a79

File tree

2 files changed

+2
-4
lines changed
  • packages/svelte/src

2 files changed

+2
-4
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ export function build_component(node, component_name, context, anchor = context.
146146
return (
147147
n.type === 'ExpressionTag' &&
148148
n.expression.type !== 'Identifier' &&
149-
n.expression.type !== 'MemberExpression' &&
150-
n.expression.type !== 'UpdateExpression' &&
151-
n.expression.type !== 'AssignmentExpression'
149+
n.expression.type !== 'MemberExpression'
152150
);
153151
});
154152

packages/svelte/src/internal/client/dom/elements/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export function apply(
314314

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

0 commit comments

Comments
 (0)