sanex3339 il y a 9 ans
Parent
commit
a2806cabc9
2 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 1 0
      .npmrc
  2. 1 3
      src/node-obfuscators/VariableDeclarationObfuscator.ts

+ 1 - 0
.npmrc

@@ -0,0 +1 @@
+unsafe-perm = true

+ 1 - 3
src/node-obfuscators/VariableDeclarationObfuscator.ts

@@ -90,9 +90,7 @@ export class VariableDeclarationObfuscator extends NodeObfuscator {
                     node.type === 'FunctionExpression' ||
                     node.type === 'ArrowFunctionExpression'
                 ) {
-                    functionParentScope = NodeUtils.getNodeScope(
-                        node
-                    );
+                    functionParentScope = NodeUtils.getNodeScope(node);
 
                     if (NodeUtils.isBlockStatementNode(functionParentScope)) {
                         functionIndex = functionParentScope.body.indexOf(node);