refactoring

This commit is contained in:
sanex3339
2016-06-17 19:51:24 +03:00
parent 251db19cd8
commit 36a825bb42
6 changed files with 21 additions and 14 deletions
@@ -45,7 +45,7 @@ export class CatchClauseObfuscator extends NodeObfuscator {
private replaceCatchClauseParamInBlockStatement (catchClauseNode: ICatchClauseNode): void {
estraverse.replace(catchClauseNode.body, {
leave: (node: INode, parentNode: INode): any => {
this.replaceNodeIdentifierWithNewValue(node, parentNode, this.catchClauseParam);
this.replaceIdentifiersWithValuesFromNamesMap(node, parentNode, this.catchClauseParam);
}
});
}