Validate RegExp syntax in a RegExp literal.
@param {ASTNode} node A Literal node to check.
@returns {void}
function validateRegExpLiteral(node) {
            validateRegExp(node.regex.pattern, node.regex.flags, node)
        }