Skip to content

Commit 92f1b48

Browse files
committed
Remove --experimentalAsyncFunctions
1 parent c05297c commit 92f1b48

File tree

5 files changed

+0
-23
lines changed

5 files changed

+0
-23
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11759,10 +11759,6 @@ namespace ts {
1175911759
checkSignatureDeclaration(node);
1176011760
let isAsync = isAsyncFunctionLike(node);
1176111761
if (isAsync) {
11762-
if (!compilerOptions.experimentalAsyncFunctions) {
11763-
error(node, Diagnostics.Experimental_support_for_async_functions_is_a_feature_that_is_subject_to_change_in_a_future_release_Specify_experimentalAsyncFunctions_to_remove_this_warning);
11764-
}
11765-
1176611762
emitAwaiter = true;
1176711763
}
1176811764

src/compiler/commandLineParser.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,6 @@ namespace ts {
222222
type: "boolean",
223223
description: Diagnostics.Watch_input_files,
224224
},
225-
{
226-
name: "experimentalAsyncFunctions",
227-
type: "boolean",
228-
description: Diagnostics.Enables_experimental_support_for_ES7_async_functions
229-
},
230225
{
231226
name: "experimentalDecorators",
232227
type: "boolean",

src/compiler/diagnosticMessages.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -783,10 +783,6 @@
783783
"category": "Error",
784784
"code": 1245
785785
},
786-
"Experimental support for async functions is a feature that is subject to change in a future release. Specify '--experimentalAsyncFunctions' to remove this warning.": {
787-
"category": "Error",
788-
"code": 1246
789-
},
790786

791787
"'with' statements are not allowed in an async function block.": {
792788
"category": "Error",
@@ -2282,10 +2278,6 @@
22822278
"category": "Message",
22832279
"code": 6066
22842280
},
2285-
"Option 'experimentalAsyncFunctions' cannot be specified when targeting ES5 or lower.": {
2286-
"category": "Message",
2287-
"code": 6067
2288-
},
22892281
"Enables experimental support for ES7 async functions.": {
22902282
"category": "Message",
22912283
"code": 6068

src/compiler/program.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,11 +1076,6 @@ namespace ts {
10761076
!options.experimentalDecorators) {
10771077
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDecoratorMetadata", "experimentalDecorators"));
10781078
}
1079-
1080-
if (options.experimentalAsyncFunctions &&
1081-
options.target !== ScriptTarget.ES6) {
1082-
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_experimentalAsyncFunctions_cannot_be_specified_when_targeting_ES5_or_lower));
1083-
}
10841079
}
10851080
}
10861081
}

src/compiler/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,6 @@ namespace ts {
20802080
watch?: boolean;
20812081
isolatedModules?: boolean;
20822082
experimentalDecorators?: boolean;
2083-
experimentalAsyncFunctions?: boolean;
20842083
emitDecoratorMetadata?: boolean;
20852084
moduleResolution?: ModuleResolutionKind;
20862085
/* @internal */ stripInternal?: boolean;

0 commit comments

Comments
 (0)