diff --git a/src/harness/harness.ts b/src/harness/harness.ts index 44ca9fc6b3e..57643e548f9 100644 --- a/src/harness/harness.ts +++ b/src/harness/harness.ts @@ -904,7 +904,8 @@ namespace Harness { { name: "includeBuiltFile", type: "string" }, { name: "fileName", type: "string" }, { name: "libFiles", type: "string" }, - { name: "noErrorTruncation", type: "boolean" } + { name: "noErrorTruncation", type: "boolean" }, + { name: "suppressOutputPathCheck", type: "boolean" } ]; let optionsIndex: ts.Map; @@ -947,9 +948,6 @@ namespace Harness { } } } - else if (name === "suppressOutputPathCheck") { - options.suppressOutputPathCheck = true; - } else { throw new Error(`Unknown compiler option '${name}'.`); }