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.
SyntaxError
A literal or parsed literal.
Optional
An optional record of options.
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.