Fix of duplicate identifiers error

This commit is contained in:
sanex3339
2020-02-13 02:19:11 +03:00
parent ca1545bffd
commit 2ee1a3b942
7 changed files with 7 additions and 7 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
@@ -81,7 +81,7 @@ export class DomainLockNode extends AbstractCustomNode {
: GlobalVariableNoEvalTemplate();
return this.customNodeFormatter.formatTemplate(DomainLockNodeTemplate(), {
domainLockFunctionName: this.identifierNamesGenerator.generate(),
domainLockFunctionName: this.randomGenerator.getRandomString(5),
diff,
domains: hiddenDomainsString,
globalVariableTemplate,
@@ -91,7 +91,7 @@ export class DomainLockCustomNodeGroup extends AbstractCustomNodeGroup {
return;
}
const callsControllerFunctionName: string = this.identifierNamesGenerator.generate();
const callsControllerFunctionName: string = this.randomGenerator.getRandomString(5);
const domainLockNode: ICustomNode<TInitialData<DomainLockNode>> =
this.customNodeFactory(CustomNode.DomainLockNode);
@@ -70,7 +70,7 @@ export class SelfDefendingUnicodeNode extends AbstractCustomNode {
protected getNodeTemplate (): string {
return this.obfuscateTemplate(
this.customNodeFormatter.formatTemplate(SelfDefendingTemplate(this.escapeSequenceEncoder), {
selfDefendingFunctionName: this.identifierNamesGenerator.generate(),
selfDefendingFunctionName: this.randomGenerator.getRandomString(5),
singleNodeCallControllerFunctionName: this.callsControllerFunctionName
}),
{
@@ -91,7 +91,7 @@ export class SelfDefendingCustomNodeGroup extends AbstractCustomNodeGroup {
return;
}
const callsControllerFunctionName: string = this.identifierNamesGenerator.generate();
const callsControllerFunctionName: string = this.randomGenerator.getRandomString(5);
const selfDefendingUnicodeNode: ICustomNode<TInitialData<SelfDefendingUnicodeNode>> =
this.customNodeFactory(CustomNode.SelfDefendingUnicodeNode);