mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 20:37:46 -05:00
Include globals in check for existing identifiers
This commit is contained in:
@@ -10260,7 +10260,7 @@ module ts {
|
||||
}
|
||||
|
||||
function isExistingName(name: string) {
|
||||
return hasProperty(sourceFile.identifiers, name) || hasProperty(generatedNames, name);
|
||||
return hasProperty(globals, name) || hasProperty(sourceFile.identifiers, name) || hasProperty(generatedNames, name);
|
||||
}
|
||||
|
||||
function makeUniqueName(baseName: string): string {
|
||||
|
||||
Reference in New Issue
Block a user