Browse Source

added option for disabling console output

sanex3339 9 năm trước cách đây
mục cha
commit
3d46208287
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/Obfuscator.ts

+ 2 - 2
src/Obfuscator.ts

@@ -63,7 +63,7 @@ export class Obfuscator {
      * @param node
      * @param node
      */
      */
     public obfuscateNode (node: ITreeNode): void {
     public obfuscateNode (node: ITreeNode): void {
-        this.insertNewNodes(node);
+        this.setNewNodes(node);
         this.beforeObfuscation(node);
         this.beforeObfuscation(node);
 
 
         estraverse.replace(node, {
         estraverse.replace(node, {
@@ -118,7 +118,7 @@ export class Obfuscator {
         });
         });
     };
     };
 
 
-    private insertNewNodes (astTree: ITreeNode): void {
+    private setNewNodes (astTree: ITreeNode): void {
         if (this.options['disableConsoleOutput']) {
         if (this.options['disableConsoleOutput']) {
             this.setNode(
             this.setNode(
                 'consoleOutputDisableExpressionNode',
                 'consoleOutputDisableExpressionNode',