Skip to content

Commit 4b87c4d

Browse files
committed
fixup!
1 parent ea95b66 commit 4b87c4d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/generators/legacy-json/utils/parseList.mjs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,10 @@ export function parseList(section, nodes) {
9494

9595
// Update the section based on its type and parsed values
9696
switch (section.type) {
97-
case 'ctor': {
98-
const signature = parseSignature(section.textRaw, values);
99-
100-
Object.keys(signature).forEach(key => (section[key] ??= signature[key]));
101-
97+
case 'ctor':
98+
// Constructors are their own signatures
99+
Object.assign(section, parseSignature(section.textRaw, values));
102100
break;
103-
}
104101

105102
case 'classMethod':
106103
case 'method':

0 commit comments

Comments
 (0)