Function analyse

  • Analyses the given (parsed or unparsed) RegExp literal for causes of super-linear runtime complexity.

    If the given (unparsed) literal is not a syntactically valid JS RegExp, a SyntaxError will be thrown.

    Parameters

    Returns AnalysisResult