We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cac3d2 commit b1cc424Copy full SHA for b1cc424
packages/svelte/src/compiler/phases/2-analyze/visitors/ClassBody.js
@@ -76,11 +76,7 @@ export function ClassBody(node, context) {
76
handle(child, child.key, child.value);
77
}
78
79
- if (
80
- child.type === 'MethodDefinition' &&
81
- child.key.type === 'Identifier' &&
82
- child.key.name === 'constructor'
83
- ) {
+ if (child.type === 'MethodDefinition' && child.kind === 'constructor') {
84
constructor = child;
85
86
0 commit comments