Skip to content

Commit 9acad22

Browse files
author
Andy
authored
PropertyAssignment#initializer should be non-optional (#22209)
1 parent 6c63dd2 commit 9acad22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2287,7 +2287,7 @@ namespace ts {
22872287
const node = <PropertyAssignment>createSynthesizedNode(SyntaxKind.PropertyAssignment);
22882288
node.name = asName(name);
22892289
node.questionToken = undefined;
2290-
node.initializer = initializer !== undefined ? parenthesizeExpressionForList(initializer) : undefined;
2290+
node.initializer = parenthesizeExpressionForList(initializer);
22912291
return node;
22922292
}
22932293

0 commit comments

Comments
 (0)