@@ -2162,7 +2162,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2162
2162
getGlobalIteratorType: getGlobalAsyncIteratorType,
2163
2163
getGlobalIterableType: getGlobalAsyncIterableType,
2164
2164
getGlobalIterableIteratorType: getGlobalAsyncIterableIteratorType,
2165
- getGlobalBuiltinIteratorType: getGlobalAsyncBuiltinIteratorType ,
2165
+ getGlobalBuiltinIteratorType: getGlobalBuiltinAsyncIteratorType ,
2166
2166
getGlobalGeneratorType: getGlobalAsyncGeneratorType,
2167
2167
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),
2168
2168
mustHaveANextMethodDiagnostic: Diagnostics.An_async_iterator_must_have_a_next_method,
@@ -2246,7 +2246,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2246
2246
var deferredGlobalAsyncIterableType: GenericType | undefined;
2247
2247
var deferredGlobalAsyncIteratorType: GenericType | undefined;
2248
2248
var deferredGlobalAsyncIterableIteratorType: GenericType | undefined;
2249
- var deferredGlobalAsyncBuiltinIteratorType : GenericType | undefined;
2249
+ var deferredGlobalBuiltinAsyncIteratorType : GenericType | undefined;
2250
2250
var deferredGlobalAsyncGeneratorType: GenericType | undefined;
2251
2251
var deferredGlobalTemplateStringsArrayType: ObjectType | undefined;
2252
2252
var deferredGlobalImportMetaType: ObjectType;
@@ -16941,8 +16941,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
16941
16941
return (deferredGlobalAsyncIterableIteratorType ||= getGlobalType("AsyncIterableIterator" as __String, /*arity*/ 3, reportErrors)) || emptyGenericType;
16942
16942
}
16943
16943
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;
16946
16946
}
16947
16947
16948
16948
function getGlobalAsyncGeneratorType(reportErrors: boolean) {
@@ -44797,7 +44797,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
44797
44797
// As an optimization, if the type is an instantiation of the following global type, then
44798
44798
// just grab its related type arguments:
44799
44799
// - `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>`
44801
44801
// - `IterableIterator<T, TReturn, TNext>` or `AsyncIterableIterator<T, TReturn, TNext>`
44802
44802
// - `Generator<T, TReturn, TNext>` or `AsyncGenerator<T, TReturn, TNext>`
44803
44803
if (
@@ -44925,7 +44925,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
44925
44925
// As an optimization, if the type is an instantiation of one of the following global types,
44926
44926
// then just grab its related type arguments:
44927
44927
// - `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>`
44929
44929
// - `Iterator<T, TReturn, TNext>` or `AsyncIterator<T, TReturn, TNext>`
44930
44930
// - `Generator<T, TReturn, TNext>` or `AsyncGenerator<T, TReturn, TNext>`
44931
44931
if (
0 commit comments