summaryrefslogtreecommitdiff
path: root/cli/js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js')
-rw-r--r--cli/js/compiler.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/js/compiler.ts b/cli/js/compiler.ts
index 57e5e3a47..e4953cee2 100644
--- a/cli/js/compiler.ts
+++ b/cli/js/compiler.ts
@@ -616,6 +616,9 @@ window.compilerMain = function compilerMain(): void {
diagnostics = ts.getPreEmitDiagnostics(program).filter(
({ code }): boolean => {
+ // TS1103: 'for-await-of' statement is only allowed within an async
+ // function or async generator.
+ if (code === 1103) return false;
// TS1308: 'await' expression is only allowed within an async
// function.
if (code === 1308) return false;