diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 56a2d3b61eb..4c291091d0e 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -130,7 +130,7 @@ module ts { var lineStartsOfS = getLineStarts(s); if (lineStartsOfS.length > 1) { lineCount = lineCount + lineStartsOfS.length - 1; - linePos = linePos = output.length - s.length + lineStartsOfS[lineStartsOfS.length - 1]; + linePos = output.length - s.length + lineStartsOfS[lineStartsOfS.length - 1]; } } }