From 26636f5a5cfe1a201b34100fcb7a2cb4552e83b4 Mon Sep 17 00:00:00 2001 From: Dan Quirk Date: Tue, 14 Jul 2015 19:18:57 -0700 Subject: [PATCH] Fix var->let that broke sourcemap baselines --- src/harness/harness.ts | 2 +- src/harness/sourceMapRecorder.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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);