0.9.0-beta.5

This commit is contained in:
sanex3339
2017-01-24 19:25:48 +03:00
parent 59c267eabd
commit 07e0fecb5b
2 changed files with 6 additions and 11 deletions
+1
View File
@@ -3,6 +3,7 @@ Change Log
v0.9.0-beta.5
---
* Increased performance
* Fixed very rare `Cannot read property 'type' of undefined` error, when `RandomGeneratorUtils.getMathRandom()` returned incorrect value `1`.
v0.9.0-beta.4
---
+5 -11
View File
@@ -131,20 +131,14 @@ export class Obfuscator implements IObfuscator {
// first pass: control flow flattening
if (this.options.controlFlowFlattening) {
astTree = this.transformAstTree(
astTree,
Obfuscator.controlFlowTransformersList
);
astTree = this.transformAstTree(astTree, Obfuscator.controlFlowTransformersList);
}
// second pass: nodes obfuscation
astTree = this.transformAstTree(
astTree,
[
...Obfuscator.convertingTransformersList,
...Obfuscator.obfuscatingTransformersList
]
);
astTree = this.transformAstTree(astTree, [
...Obfuscator.convertingTransformersList,
...Obfuscator.obfuscatingTransformersList
]);
this.obfuscationEventEmitter.emit(ObfuscationEvents.AfterObfuscation, astTree, stackTraceData);