Correctly handle zero-length test inputs

This commit is contained in:
Ryan Cavanaugh
2014-09-04 09:09:22 -07:00
parent f328c7c6f8
commit f2546c1392
+1 -1
View File
@@ -732,7 +732,7 @@ module Harness {
var filemap: { [name: string]: ts.SourceFile; } = {};
var register = (file: { unitName: string; content: string; }) => {
if (file.content) {
if (file.content !== undefined) {
var filename = Path.switchToForwardSlashes(file.unitName);
filemap[getCanonicalFileName(filename)] = ts.createSourceFile(filename, file.content, options.target, /*version:*/ "0");
}