mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user