diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 04c32385d32..d4f3cd59615 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -2257,7 +2257,7 @@ module ts { forEach((node.template).templateSpans, templateSpan => { write(", "); var needsParens = templateSpan.expression.kind === SyntaxKind.BinaryExpression - && (templateSpan.expression).operator === SyntaxKind.CommaToken; + && (templateSpan.expression).operatorToken.kind === SyntaxKind.CommaToken; emitParenthesizedIf(templateSpan.expression, needsParens); }); }