Skip to content

Commit 9bbbdec

Browse files
author
Yui T
committed
Check for repeating meta-data flag.
1 parent 4a1f652 commit 9bbbdec

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/harness/fourslash.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,6 +2147,10 @@ module FourSlash {
21472147
currentFileOptions[match[1]] = match[2];
21482148
}
21492149
} else {
2150+
// Check if the match is already existed in the global options
2151+
if (opts[match[1]] !== undefined) {
2152+
throw new Error("Global Option : '" + match[1] + "' is already existed");
2153+
}
21502154
opts[match[1]] = match[2];
21512155
}
21522156
}

tests/cases/fourslash/getEmitOutputSourceMap2.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,4 @@
1717
//// var k = 10;
1818
//// }
1919

20-
var filename = "sample/outDir/sourceMapResult";
21-
var jsFilename = filename + ".js";
22-
var sourceMapFilename = filename + ".js.map";
23-
var outputFilenames = jsFilename + " " + sourceMapFilename;
24-
verify.baselineGetEmitOutput();
25-
//verify.emitOutput(EmitReturnStatus.Succeeded, outputFilenames);
20+
verify.baselineGetEmitOutput();

0 commit comments

Comments
 (0)