mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
selfDefending test implementation
This commit is contained in:
@@ -37,7 +37,7 @@ export class SelfDefendingUnicodeNode extends Node {
|
||||
randomIndex: number = 0;
|
||||
|
||||
if (programBodyLength > 2) {
|
||||
randomIndex = Utils.getRandomInteger(programBodyLength, programBodyLength / 2);
|
||||
randomIndex = Utils.getRandomInteger(programBodyLength / 2, programBodyLength);
|
||||
}
|
||||
|
||||
NodeUtils.insertNodeAtIndex(blockScopeNode.body, this.getNode(), randomIndex);
|
||||
|
||||
Reference in New Issue
Block a user