Added more tests

This commit is contained in:
sanex3339
2020-01-06 22:36:09 +03:00
parent 53532e7095
commit 5f674a43e7
@@ -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