Removed memory leak with identifierNamesGenerator: 'mangled'

This commit is contained in:
sanex3339
2020-05-29 22:01:05 +03:00
parent cc85f93f98
commit e4ca9f774b
7 changed files with 63 additions and 62 deletions
@@ -17,9 +17,9 @@ export class MangledIdentifierNamesGenerator extends AbstractIdentifierNamesGene
private static readonly initMangledNameCharacter: string = '9';
/**
* @type {Map<TNodeWithLexicalScope, string>}
* @type {WeakMap<TNodeWithLexicalScope, string>}
*/
private static readonly lastMangledNameInScopeMap: Map <TNodeWithLexicalScope, string> = new Map();
private static readonly lastMangledNameInScopeMap: WeakMap <TNodeWithLexicalScope, string> = new WeakMap();
/**
* @type {string[]}