mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
fixed error when string array variable name and string array calls wrapper name was the same
This commit is contained in:
@@ -109,7 +109,7 @@ export class StringArrayCustomNodeGroup extends AbstractCustomNodeGroup {
|
||||
const reversedStorageId = Array.from(stringArrayStorageId).reverse().join('');
|
||||
|
||||
const stringArrayName: string = `_${Utils.hexadecimalPrefix}${stringArrayStorageId}`;
|
||||
const stringArrayCallsWrapperName: string = `_${Utils.hexadecimalPrefix}${reversedStorageId}`;
|
||||
const stringArrayCallsWrapperName: string = `_${Utils.hexadecimalPrefix}${reversedStorageId}a`;
|
||||
|
||||
let stringArrayRotateValue: number;
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ export class StringLiteralReplacer extends AbstractReplacer {
|
||||
}
|
||||
|
||||
const reversedStringArrayId: string = Array.from(this.stringArrayStorage.getStorageId()).reverse().join('');
|
||||
const stringArrayStorageCallsWrapperName: string = `_${Utils.hexadecimalPrefix}${reversedStringArrayId}`;
|
||||
const stringArrayStorageCallsWrapperName: string = `_${Utils.hexadecimalPrefix}${reversedStringArrayId}a`;
|
||||
const hexadecimalIndex: string = `${Utils.hexadecimalPrefix}${Utils.decToHex(indexOfValue)}`;
|
||||
|
||||
if (this.options.stringArrayEncoding === StringArrayEncoding.rc4) {
|
||||
|
||||
Reference in New Issue
Block a user