JS: Add another warning

This commit is contained in:
Asger Feldthaus
2020-04-08 10:30:45 +01:00
parent 4acb9da2cf
commit 4ca3ac5ee9

View File

@@ -61,6 +61,7 @@ class AmdModuleDefinition extends CallExpr {
}
private DataFlow::Node getFactoryNodeInternal() {
// To avoid recursion, this should not depend on `SourceNode`.
result = DataFlow::valueNode(getLastArgument()) or
result = getFactoryNodeInternal().getAPredecessor()
}