Fixed regression bug with combination of splitStrings and renameProperties option

https://github.com/javascript-obfuscator/javascript-obfuscator/issues/729
This commit is contained in:
sanex
2020-09-02 21:52:59 +03:00
parent 4512bcda65
commit a0dca0256b
7 changed files with 12 additions and 6 deletions
+1 -2
View File
@@ -217,12 +217,11 @@ export class JavaScriptObfuscator implements IJavaScriptObfuscator {
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.ControlFlowFlattening);
}
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.Converting);
if (this.options.renameProperties) {
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.RenameProperties);
}
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.Converting);
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.RenameIdentifiers);
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.StringArray);