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