Skip to content

Commit 5c9218f

Browse files
committed
JS: Add comment about 'path' heuristic
1 parent f3e0cfd commit 5c9218f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript/ql/lib/semmle/javascript/internal/paths/PathConcatenation.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ private class TemplateConcatenation extends PathConcatenation, TemplateLiteral {
2525

2626
private class JoinCallConcatenation extends PathConcatenation, CallExpr {
2727
JoinCallConcatenation() {
28+
// Heuristic recognition of path.join and path.resolve since we can't rely on SourceNode at this stage.
2829
this.getReceiver().(VarAccess).getName() = "path" and
2930
this.getCalleeName() = ["join", "resolve"]
3031
}

0 commit comments

Comments
 (0)