mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
JS: Add comment about 'path' heuristic
This commit is contained in:
@@ -25,6 +25,7 @@ private class TemplateConcatenation extends PathConcatenation, TemplateLiteral {
|
||||
|
||||
private class JoinCallConcatenation extends PathConcatenation, CallExpr {
|
||||
JoinCallConcatenation() {
|
||||
// Heuristic recognition of path.join and path.resolve since we can't rely on SourceNode at this stage.
|
||||
this.getReceiver().(VarAccess).getName() = "path" and
|
||||
this.getCalleeName() = ["join", "resolve"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user