8000 JS: Explain use of monotonicAggregates · github/codeql@1f308ee · GitHub
[go: up one dir, main page]

Skip to content

Commit 1f308ee

Browse files
committed
JS: Explain use of monotonicAggregates
1 parent 5c9218f commit 1f308ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ module ResolveExpr<exprSig/1 shouldResolveExpr> {
6565
or
6666
exists(PathConcatenation join |
6767
node = TValueNode(join) and
68+
// Note: 'monotonicAggregates' above lets us use recursion in the last clause of this aggregate
6869
result =
6970
strictconcat(int n, EarlyStageNode child, string sep |
7071
child = TValueNode(join.getOperand(n)) and sep = join.getSeparator()

0 commit comments

Comments
 (0)
0