mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Fix of duplicate identifiers error
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
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);
|
||||
|
||||
Reference in New Issue
Block a user