Include globals in check for existing identifiers

This commit is contained in:
Anders Hejlsberg committed 2015-02-15 18:46:41 -08:00
1 parent cc52dcec49
commit 7cca6519ef
1 file changed
+1 -1
+1 -1
View File
@@ -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 {