Merge pull request #11853 from erik-krogh/assignMore

JS: add local flow when recognizing Object.assign calls for library-inputs
This commit is contained in:
Erik Krogh Kristensen
2023-01-10 17:04:29 +01:00
committed by GitHub
4 changed files with 22 additions and 2 deletions

View File

@@ -200,7 +200,8 @@ private DataFlow::Node getAValueExportedByPackage() {
or
// Object.assign and friends
exists(ExtendCall assign |
getAValueExportedByPackage() = [assign, assign.getDestinationOperand()] and
getAValueExportedByPackage() = [assign, assign.getDestinationOperand().getALocalSource()]
|
result = assign.getASourceOperand()
)
or