mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
0.9.0-beta.5
This commit is contained in:
@@ -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
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user