From eff6a3a7b637b3dc43826b0800920d5dc2a18859 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Sat, 19 Aug 2017 01:00:56 +0100 Subject: [PATCH] Clean up other statement to match style --- 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 576f59e590f..7a20a6d8a41 100644 --- a/src/compiler/factory.ts +++ b/src/compiler/factory.ts @@ -3821,7 +3821,7 @@ namespace ts { // const emittedExpression = skipPartiallyEmittedExpressions(expression); if (isLeftHandSideExpression(emittedExpression) - && (emittedExpression.kind !== SyntaxKind.NewExpression || (emittedExpression).arguments) + && (!isNewExpression(emittedExpression) || (emittedExpression).arguments) && !isEmptyObjectLiteral(emittedExpression)) { return expression; }