lib/rules/no-constant-condition.js
function checkConstantConditionLoopInSet(node) {
            if (loopsInCurrentScope.has(node)) {
                loopsInCurrentScope.delete(node);
                context.report({ node: node.test, messageId: "unexpected" });
            }
        }
function checkConstantConditionLoopInSet(node) {
            if (loopsInCurrentScope.has(node)) {
                loopsInCurrentScope.delete(node);
                context.report({ node: node.test, messageId: "unexpected" });
            }
        }
function checkConstantConditionLoopInSet ( node ) { if ( loopsInCurrentScope . has ( node ) ) { loopsInCurrentScope . delete ( node ) ; context . report ( { node : node . test , messageId : "unexpected" } ) ; } }
Reports when the set contains the given constant condition node
@param {ASTNode} node The AST node to check.
@returns {void}
@private
Reports when the set contains the given constant condition node