mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
0.9.0-dev.5
This commit is contained in:
Vendored
-2
@@ -2217,9 +2217,7 @@ var Obfuscator = Obfuscator_1 = function () {
|
||||
if (this.options.controlFlowFlattening) {
|
||||
astTree = this.transformAstTree(astTree, VisitorDirection_1.VisitorDirection.leave, this.nodeTransformersFactory(Obfuscator_1.nodeControlFlowTransformersMap));
|
||||
}
|
||||
console.time();
|
||||
astTree = this.transformAstTree(astTree, VisitorDirection_1.VisitorDirection.enter, this.nodeTransformersFactory(Obfuscator_1.nodeObfuscatorsMap));
|
||||
console.timeEnd();
|
||||
this.obfuscationEventEmitter.emit(ObfuscationEvents_1.ObfuscationEvents.AfterObfuscation, astTree, stackTraceData);
|
||||
return astTree;
|
||||
}
|
||||
|
||||
@@ -137,13 +137,11 @@ export class Obfuscator implements IObfuscator {
|
||||
}
|
||||
|
||||
// second pass: nodes obfuscation
|
||||
console.time();
|
||||
astTree = this.transformAstTree(
|
||||
astTree,
|
||||
VisitorDirection.enter,
|
||||
this.nodeTransformersFactory(Obfuscator.nodeObfuscatorsMap)
|
||||
);
|
||||
console.timeEnd();
|
||||
|
||||
this.obfuscationEventEmitter.emit(ObfuscationEvents.AfterObfuscation, astTree, stackTraceData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user