Remove unused 'assertInvariants' parameter.
This commit is contained in:
parent
df081c8904
commit
b790873438
2 changed files with 10 additions and 10 deletions
|
@ -948,7 +948,8 @@ module Harness {
|
||||||
result.sourceMaps.forEach(writeFile);
|
result.sourceMaps.forEach(writeFile);
|
||||||
},
|
},
|
||||||
/*settingsCallback*/ () => { },
|
/*settingsCallback*/ () => { },
|
||||||
this.compileOptions);
|
this.compileOptions,
|
||||||
|
/*currentDirectory*/ undefined);
|
||||||
|
|
||||||
function writeFile(file: GeneratedFile) {
|
function writeFile(file: GeneratedFile) {
|
||||||
ioHost.writeFile(file.fileName, file.code, false);
|
ioHost.writeFile(file.fileName, file.code, false);
|
||||||
|
@ -961,8 +962,7 @@ module Harness {
|
||||||
settingsCallback?: (settings: ts.CompilerOptions) => void,
|
settingsCallback?: (settings: ts.CompilerOptions) => void,
|
||||||
options?: ts.CompilerOptions,
|
options?: ts.CompilerOptions,
|
||||||
// Current directory is needed for rwcRunner to be able to use currentDirectory defined in json file
|
// Current directory is needed for rwcRunner to be able to use currentDirectory defined in json file
|
||||||
currentDirectory?: string,
|
currentDirectory?: string) {
|
||||||
assertInvariants = true) {
|
|
||||||
|
|
||||||
options = options || { noResolve: false };
|
options = options || { noResolve: false };
|
||||||
options.target = options.target || ts.ScriptTarget.ES3;
|
options.target = options.target || ts.ScriptTarget.ES3;
|
||||||
|
|
|
@ -106,14 +106,14 @@ module RWC {
|
||||||
opts.options.noLib = true;
|
opts.options.noLib = true;
|
||||||
|
|
||||||
// Emit the results
|
// Emit the results
|
||||||
compilerOptions = harnessCompiler.compileFiles(inputFiles, otherFiles, compileResult => {
|
compilerOptions = harnessCompiler.compileFiles(
|
||||||
compilerResult = compileResult;
|
inputFiles,
|
||||||
},
|
otherFiles,
|
||||||
|
newCompilerResults => { compilerResult = newCompilerResults; },
|
||||||
/*settingsCallback*/ undefined, opts.options,
|
/*settingsCallback*/ undefined, opts.options,
|
||||||
// Since all Rwc json file specified current directory in its json file, we need to pass this information to compilerHost
|
// Since each RWC json file specifies its current directory in its json file, we need
|
||||||
// so that when the host is asked for current directory, it should give the value from json rather than from process
|
// to pass this information in explicitly instead of acquiring it from the process.
|
||||||
currentDirectory,
|
currentDirectory);
|
||||||
/*assertInvariants:*/ false);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function getHarnessCompilerInputUnit(fileName: string) {
|
function getHarnessCompilerInputUnit(fileName: string) {
|
||||||
|
|
Loading…
Reference in a new issue