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.
2 parents d695afa + 7205007 commit 86a121cCopy full SHA for 86a121c
src/compiler/tsc.ts
@@ -191,7 +191,8 @@ namespace ts {
191
return sys.exit(ExitStatus.Success);
192
}
193
194
- if (commandLine.options.watch) {
+ // Firefox has Object.prototype.watch
195
+ if (commandLine.options.watch && commandLine.options.hasOwnProperty("watch")) {
196
if (!sys.watchFile) {
197
reportDiagnostic(createCompilerDiagnostic(Diagnostics.The_current_host_does_not_support_the_0_option, "--watch"));
198
return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped);
0 commit comments