sanex3339 9 年之前
父節點
當前提交
a2806cabc9
共有 2 個文件被更改,包括 2 次插入3 次删除
  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);