We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2f4cd7 commit 218bcd8Copy full SHA for 218bcd8
src/compiler/tsc.ts
@@ -201,6 +201,11 @@ module ts {
201
var commandLine = parseCommandLine(args);
202
203
if (commandLine.options.locale) {
204
+ if (typeof JSON === "undefined") {
205
+ reportDiagnostic(createCompilerDiagnostic(Diagnostics.The_current_host_does_not_support_the_0_option, "--locale"));
206
+ return sys.exit(1);
207
+ }
208
+
209
validateLocaleAndSetLanguage(commandLine.options.locale, commandLine.errors);
210
}
211
0 commit comments