@@ -2162,7 +2162,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
21622162 getGlobalIteratorType: getGlobalAsyncIteratorType,
21632163 getGlobalIterableType: getGlobalAsyncIterableType,
21642164 getGlobalIterableIteratorType: getGlobalAsyncIterableIteratorType,
2165- getGlobalBuiltinIteratorType: getGlobalAsyncBuiltinIteratorType ,
2165+ getGlobalBuiltinIteratorType: getGlobalBuiltinAsyncIteratorType ,
21662166 getGlobalGeneratorType: getGlobalAsyncGeneratorType,
21672167 resolveIterationType: (type, errorNode) => getAwaitedType(type, errorNode, Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),
21682168 mustHaveANextMethodDiagnostic: Diagnostics.An_async_iterator_must_have_a_next_method,
@@ -2246,7 +2246,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
22462246 var deferredGlobalAsyncIterableType: GenericType | undefined;
22472247 var deferredGlobalAsyncIteratorType: GenericType | undefined;
22482248 var deferredGlobalAsyncIterableIteratorType: GenericType | undefined;
2249- var deferredGlobalAsyncBuiltinIteratorType : GenericType | undefined;
2249+ var deferredGlobalBuiltinAsyncIteratorType : GenericType | undefined;
22502250 var deferredGlobalAsyncGeneratorType: GenericType | undefined;
22512251 var deferredGlobalTemplateStringsArrayType: ObjectType | undefined;
22522252 var deferredGlobalImportMetaType: ObjectType;
@@ -16941,8 +16941,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
1694116941 return (deferredGlobalAsyncIterableIteratorType ||= getGlobalType("AsyncIterableIterator" as __String, /*arity*/ 3, reportErrors)) || emptyGenericType;
1694216942 }
1694316943
16944- function getGlobalAsyncBuiltinIteratorType (reportErrors: boolean) {
16945- return (deferredGlobalAsyncBuiltinIteratorType ||= getGlobalType("AsyncBuiltinIterator " as __String, /*arity*/ 3, reportErrors)) || emptyGenericType;
16944+ function getGlobalBuiltinAsyncIteratorType (reportErrors: boolean) {
16945+ return (deferredGlobalBuiltinAsyncIteratorType ||= getGlobalType("BuiltinAsyncIterator " as __String, /*arity*/ 3, reportErrors)) || emptyGenericType;
1694616946 }
1694716947
1694816948 function getGlobalAsyncGeneratorType(reportErrors: boolean) {
@@ -44797,7 +44797,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4479744797 // As an optimization, if the type is an instantiation of the following global type, then
4479844798 // just grab its related type arguments:
4479944799 // - `Iterable<T, TReturn, TNext>` or `AsyncIterable<T, TReturn, TNext>`
44800- // - `BuiltinIterator<T, TReturn, TNext>` or `AsyncBuiltinIterator <T, TReturn, TNext>`
44800+ // - `BuiltinIterator<T, TReturn, TNext>` or `BuiltinAsyncIterator <T, TReturn, TNext>`
4480144801 // - `IterableIterator<T, TReturn, TNext>` or `AsyncIterableIterator<T, TReturn, TNext>`
4480244802 // - `Generator<T, TReturn, TNext>` or `AsyncGenerator<T, TReturn, TNext>`
4480344803 if (
@@ -44925,7 +44925,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4492544925 // As an optimization, if the type is an instantiation of one of the following global types,
4492644926 // then just grab its related type arguments:
4492744927 // - `IterableIterator<T, TReturn, TNext>` or `AsyncIterableIterator<T, TReturn, TNext>`
44928- // - `BuiltinIterator<T, TReturn, TNext>` or `AsyncBuiltinIterator <T, TReturn, TNext>`
44928+ // - `BuiltinIterator<T, TReturn, TNext>` or `BuiltinAsyncIterator <T, TReturn, TNext>`
4492944929 // - `Iterator<T, TReturn, TNext>` or `AsyncIterator<T, TReturn, TNext>`
4493044930 // - `Generator<T, TReturn, TNext>` or `AsyncGenerator<T, TReturn, TNext>`
4493144931 if (
0 commit comments