From e1bc170b3273d3cdb1cf20b907fa484f11638b48 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Tue, 27 Feb 2018 12:34:24 -0800 Subject: [PATCH] PropertyAssignment#initializer should be non-optional --- src/compiler/factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/factory.ts b/src/compiler/factory.ts index bb00a967336ea..342ea067c0e86 100644 --- a/src/compiler/factory.ts +++ b/src/compiler/factory.ts @@ -2287,7 +2287,7 @@ namespace ts { const node = createSynthesizedNode(SyntaxKind.PropertyAssignment); node.name = asName(name); node.questionToken = undefined; - node.initializer = initializer !== undefined ? parenthesizeExpressionForList(initializer) : undefined; + node.initializer = parenthesizeExpressionForList(initializer); return node; }