Skip to content

Commit f2546c1

Browse files
committed
Correctly handle zero-length test inputs
1 parent f328c7c commit f2546c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/harness/harness.ts

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

733733
var filemap: { [name: string]: ts.SourceFile; } = {};
734734
var register = (file: { unitName: string; content: string; }) => {
735-
if (file.content) {
735+
if (file.content !== undefined) {
736736
var filename = Path.switchToForwardSlashes(file.unitName);
737737
filemap[getCanonicalFileName(filename)] = ts.createSourceFile(filename, file.content, options.target, /*version:*/ "0");
738738
}

0 commit comments

Comments
 (0)