mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: Make implicit this receivers explicit
This commit is contained in:
@@ -87,8 +87,8 @@ class RegExpSearchCall extends DataFlow::MethodCallNode, RegExpQuery {
|
||||
DataFlow::RegExpCreationNode regexp;
|
||||
|
||||
RegExpSearchCall() {
|
||||
getMethodName() = "search" and
|
||||
regexp.getAReference().flowsTo(getArgument(0))
|
||||
this.getMethodName() = "search" and
|
||||
regexp.getAReference().flowsTo(this.getArgument(0))
|
||||
}
|
||||
|
||||
override RegExpTerm getRegExp() { result = regexp.getRoot() }
|
||||
|
||||
Reference in New Issue
Block a user