Skip to content

Commit 26636f5

Browse files
committed
Fix var->let that broke sourcemap baselines
1 parent 2818b2b commit 26636f5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/harness/harness.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ module Harness {
735735

736736
/** Functionality for compiling TypeScript code */
737737
export module Compiler {
738-
/** Aggregate letious writes into a single array of lines. Useful for passing to the
738+
/** Aggregate various writes into a single array of lines. Useful for passing to the
739739
* TypeScript compiler to fill with source code or errors.
740740
*/
741741
export class WriterAggregator implements ITextWriter {

src/harness/sourceMapRecorder.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,16 @@ module Harness.SourceMapRecoder {
329329
}
330330

331331
function writeRecordedSpans() {
332+
let markerIds: string[] = [];
333+
332334
function getMarkerId(markerIndex: number) {
333335
let markerId = "";
334336
if (spanMarkerContinues) {
335337
assert.isTrue(markerIndex === 0);
336338
markerId = "1->";
337339
}
338340
else {
339-
let markerId = "" + (markerIndex + 1);
341+
markerId = "" + (markerIndex + 1);
340342
if (markerId.length < 2) {
341343
markerId = markerId + " ";
342344
}
@@ -416,7 +418,6 @@ module Harness.SourceMapRecoder {
416418
writeJsFileLines(currentJsLine);
417419

418420
// Emit markers
419-
var markerIds: string[] = [];
420421
iterateSpans(writeSourceMapMarker);
421422

422423
let jsFileText = getTextOfLine(currentJsLine, jsLineMap, jsFile.code);

0 commit comments

Comments
 (0)