Fix var->let that broke sourcemap baselines

This commit is contained in:
Dan Quirk 2015-07-14 19:18:57 -07:00
parent 2818b2b6fd
commit 26636f5a5c
2 changed files with 4 additions and 3 deletions

View File

@ -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 {

View File

@ -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);