Added mangleProperties option

This commit is contained in:
sanex3339
2020-06-06 10:04:25 +03:00
parent 06176c29a6
commit f5e06fcfed
10 changed files with 39 additions and 41438 deletions
+4 -1
View File
@@ -209,7 +209,10 @@ export class JavaScriptObfuscator implements IJavaScriptObfuscator {
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.ControlFlowFlattening);
}
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.MangleProperties);
if (this.options.mangleProperties) {
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.MangleProperties);
}
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.Converting);
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.Obfuscating);
astTree = this.runNodeTransformationStage(astTree, NodeTransformationStage.Finalizing);