From 223aaca674d6f7a9311f1eef99e619dde9c26515 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 2 Sep 2014 21:11:21 -0700 Subject: [PATCH] Corrected linepos assignment --- src/compiler/emitter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } } }