Skip to content

Commit 86a121c

Browse files
committed
Merge branch 'mihailik-patch-1'
2 parents d695afa + 7205007 commit 86a121c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/tsc.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ namespace ts {
191191
return sys.exit(ExitStatus.Success);
192192
}
193193

194-
if (commandLine.options.watch) {
194+
// Firefox has Object.prototype.watch
195+
if (commandLine.options.watch && commandLine.options.hasOwnProperty("watch")) {
195196
if (!sys.watchFile) {
196197
reportDiagnostic(createCompilerDiagnostic(Diagnostics.The_current_host_does_not_support_the_0_option, "--watch"));
197198
return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped);

0 commit comments

Comments
 (0)