@@ -352,7 +352,7 @@ namespace ts {
352352 ResolvedReturnType
353353 }
354354
355- const builtinGlobals = createMapWithEntry( undefinedSymbol.name, undefinedSymbol);
355+ const builtinGlobals = new StringMap([[ undefinedSymbol.name, undefinedSymbol]] );
356356
357357 initializeTypeChecker();
358358
@@ -3789,7 +3789,7 @@ namespace ts {
37893789 type.typeParameters = concatenate(outerTypeParameters, localTypeParameters);
37903790 type.outerTypeParameters = outerTypeParameters;
37913791 type.localTypeParameters = localTypeParameters;
3792- (<GenericType>type).instantiations = createMapWithEntry( getTypeListId(type.typeParameters), <GenericType>type);
3792+ (<GenericType>type).instantiations = new StringMap([[ getTypeListId(type.typeParameters), <GenericType>type]] );
37933793 (<GenericType>type).target = <GenericType>type;
37943794 (<GenericType>type).typeArguments = type.typeParameters;
37953795 type.thisType = <TypeParameter>createType(TypeFlags.TypeParameter);
@@ -3831,7 +3831,7 @@ namespace ts {
38313831 if (typeParameters) {
38323832 // Initialize the instantiation cache for generic type aliases. The declared type corresponds to
38333833 // an instantiation of the type alias with the type parameters supplied as type arguments.
3834- links.instantiations = createMapWithEntry( getTypeListId(links.typeParameters), type);
3834+ links.instantiations = new StringMap([[ getTypeListId(links.typeParameters), type]] );
38353835 }
38363836 }
38373837 else {
@@ -5343,7 +5343,7 @@ namespace ts {
53435343 type.typeParameters = typeParameters;
53445344 type.outerTypeParameters = undefined;
53455345 type.localTypeParameters = typeParameters;
5346- type.instantiations = createMapWithEntry( getTypeListId(type.typeParameters), <GenericType>type);
5346+ type.instantiations = new StringMap([[ getTypeListId(type.typeParameters), <GenericType>type]] );
53475347 type.target = <GenericType>type;
53485348 type.typeArguments = type.typeParameters;
53495349 type.thisType = <TypeParameter>createType(TypeFlags.TypeParameter);
@@ -6831,7 +6831,7 @@ namespace ts {
68316831 }
68326832 sourceStack[depth] = source;
68336833 targetStack[depth] = target;
6834- maybeStack[depth] = createMapWithEntry( id, RelationComparisonResult.Succeeded);
6834+ maybeStack[depth] = new StringMap([[ id, RelationComparisonResult.Succeeded]] );
68356835 depth++;
68366836 const saveExpandingFlags = expandingFlags;
68376837 if (!(expandingFlags & 1) && isDeeplyNestedGeneric(source, sourceStack, depth)) expandingFlags |= 1;
0 commit comments