Skip to content

Commit c67fb68

Browse files
committed
--amend
1 parent f7e8941 commit c67fb68

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/svelte/src/compiler/phases/2-analyze/validation.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,6 @@ export const validation_runes = merge(validation, a11y_validators, {
11131113
if (init?.type === 'Identifier' && init.name === '$props' && !state.scope.get('props')) {
11141114
warn(state.analysis.warnings, node, path, 'invalid-props-declaration');
11151115
}
1116-
// console.log({init, p: !state.scope.get('bindable')});
11171116
return;
11181117
}
11191118

@@ -1170,7 +1169,11 @@ export const validation_runes = merge(validation, a11y_validators, {
11701169
}
11711170
},
11721171
AssignmentPattern(node, { state, path }) {
1173-
if (node.right.type === 'Identifier' && node.right.name === '$bindable' && !state.scope.get('bindable')) {
1172+
if (
1173+
node.right.type === 'Identifier' &&
1174+
node.right.name === '$bindable' &&
1175+
!state.scope.get('bindable')
1176+
) {
11741177
warn(state.analysis.warnings, node, path, 'invalid-bindable-declaration');
11751178
}
11761179
},

0 commit comments

Comments
 (0)