Check for repeating meta-data flag.

This commit is contained in:
Yui T 2014-09-09 18:01:21 -07:00
parent 4a1f652b66
commit 9bbbdec0c2
2 changed files with 5 additions and 6 deletions

View File

@ -2147,6 +2147,10 @@ module FourSlash {
currentFileOptions[match[1]] = match[2];
}
} else {
// Check if the match is already existed in the global options
if (opts[match[1]] !== undefined) {
throw new Error("Global Option : '" + match[1] + "' is already existed");
}
opts[match[1]] = match[2];
}
}

View File

@ -17,9 +17,4 @@
//// var k = 10;
//// }
var filename = "sample/outDir/sourceMapResult";
var jsFilename = filename + ".js";
var sourceMapFilename = filename + ".js.map";
var outputFilenames = jsFilename + " " + sourceMapFilename;
verify.baselineGetEmitOutput();
//verify.emitOutput(EmitReturnStatus.Succeeded, outputFilenames);
verify.baselineGetEmitOutput();