diff --git a/src/harness/harness.ts b/src/harness/harness.ts index 2ceeb1214a0..17aa0dd325c 100644 --- a/src/harness/harness.ts +++ b/src/harness/harness.ts @@ -735,7 +735,7 @@ module Harness { /** Functionality for compiling TypeScript code */ export module Compiler { - /** Aggregate letious writes into a single array of lines. Useful for passing to the + /** Aggregate various writes into a single array of lines. Useful for passing to the * TypeScript compiler to fill with source code or errors. */ export class WriterAggregator implements ITextWriter { diff --git a/src/harness/sourceMapRecorder.ts b/src/harness/sourceMapRecorder.ts index 2e423eaa888..767dd37949f 100644 --- a/src/harness/sourceMapRecorder.ts +++ b/src/harness/sourceMapRecorder.ts @@ -329,6 +329,8 @@ module Harness.SourceMapRecoder { } function writeRecordedSpans() { + let markerIds: string[] = []; + function getMarkerId(markerIndex: number) { let markerId = ""; if (spanMarkerContinues) { @@ -336,7 +338,7 @@ module Harness.SourceMapRecoder { markerId = "1->"; } else { - let markerId = "" + (markerIndex + 1); + markerId = "" + (markerIndex + 1); if (markerId.length < 2) { markerId = markerId + " "; } @@ -416,7 +418,6 @@ module Harness.SourceMapRecoder { writeJsFileLines(currentJsLine); // Emit markers - var markerIds: string[] = []; iterateSpans(writeSourceMapMarker); let jsFileText = getTextOfLine(currentJsLine, jsLineMap, jsFile.code);