Skip to content

Commit 4ca3ac5

Browse files
committed
JS: Add another warning
1 parent 4acb9da commit 4ca3ac5

File tree

1 file changed

+1
-0
lines changed
  • javascript/ql/src/semmle/javascript

1 file changed

+1
-0
lines changed

javascript/ql/src/semmle/javascript/AMD.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class AmdModuleDefinition extends CallExpr {
6161
}
6262

6363
private DataFlow::Node getFactoryNodeInternal() {
64+
// To avoid recursion, this should not depend on `SourceNode`.
6465
result = DataFlow::valueNode(getLastArgument()) or
6566
result = getFactoryNodeInternal().getAPredecessor()
6667
}

0 commit comments

Comments
 (0)