Browse Source

Added more tests

sanex3339 5 years ago
parent
commit
5f674a43e7

+ 2 - 2
src/node-transformers/obfuscating-transformers/VariableDeclarationTransformer.ts

@@ -172,7 +172,7 @@ export class VariableDeclarationTransformer extends AbstractNodeTransformer {
         lexicalScopeNode: TNodeWithLexicalScope,
         hostVariableDeclarationNode: ESTree.VariableDeclaration
     ): boolean {
-        return this.isProhibitedVariableNameUsingInObjectPatternNode(
+        return this.isProhibitedVariableNameUsedInObjectPatternNode(
             identifierNode,
             lexicalScopeNode,
             hostVariableDeclarationNode
@@ -190,7 +190,7 @@ export class VariableDeclarationTransformer extends AbstractNodeTransformer {
      * @param {VariableDeclaration} hostVariableDeclarationNode
      * @returns {boolean}
      */
-    private isProhibitedVariableNameUsingInObjectPatternNode (
+    private isProhibitedVariableNameUsedInObjectPatternNode (
         identifierNode: ESTree.Identifier,
         lexicalScopeNode: TNodeWithLexicalScope,
         hostVariableDeclarationNode: ESTree.VariableDeclaration