mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Update javascript/ql/src/semmle/javascript/Expr.qll
Co-Authored-By: Max Schaefer <54907921+max-schaefer@users.noreply.github.com>
This commit is contained in:
@@ -413,7 +413,7 @@ class StringLiteral extends @stringliteral, Literal {
|
||||
/**
|
||||
* Gets the value of this string literal parsed as a regular expression, if possible.
|
||||
*
|
||||
* All string literals have an associated regular expression tree, provided it can
|
||||
* All string literals have an associated regular expression tree, provided they can
|
||||
* be parsed without syntax errors.
|
||||
*/
|
||||
RegExpTerm asRegExp() { this = result.getParent() }
|
||||
@@ -2664,4 +2664,4 @@ class OptionalChainRoot extends ChainElem {
|
||||
*/
|
||||
class ImportMetaExpr extends @importmetaexpr, Expr {
|
||||
override predicate isImpure() { none() }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user