code: function hasSelfReferenceInTDZ(declarator) {
              if (!declarator.init) {
                  return false;
              }
              const variables = context.getDeclaredVariables(declarator);
  
              return variables.some(hasReferenceInTDZ(declarator.init));
          }
docs: Checks whether the variables which are defined by the given declarator node have their references in TDZ.
  
  @param {ASTNode} declarator - The VariableDeclarator node to check.
  @returns {boolean} `true` if one of the variables which are defined by the given declarator node have their references in TDZ.