JS: Add comment about 'path' heuristic

This commit is contained in:
Asger F
2025-05-02 13:03:29 +02:00
parent f3e0cfd947
commit 5c9218fe5a

View File

@@ -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"]
}