mirror of
https://github.com/github/codeql.git
synced 2025-12-23 12:16:33 +01:00
JS: Make implicit this receivers explicit
This commit is contained in:
@@ -20,7 +20,7 @@ class EvilTwin extends DataFlow::CallNode {
|
||||
EvilTwin() {
|
||||
exists(string fn | fn = "setTimeout" or fn = "setInterval" |
|
||||
this = DataFlow::globalVarRef(fn).getACall() and
|
||||
getArgument(0).asExpr() instanceof ConstantString
|
||||
this.getArgument(0).asExpr() instanceof ConstantString
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user