mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
JavaScript: Teach API graphs to recognise arguments supplied in partial function applications.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import ApiGraphs.VerifyAssertions
|
||||
8
javascript/ql/test/ApiGraphs/partial-invoke/index.js
Normal file
8
javascript/ql/test/ApiGraphs/partial-invoke/index.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const cp = require('child_process');
|
||||
|
||||
module.exports = function () {
|
||||
return cp.spawn.bind(
|
||||
cp, // def (parameter -1 (member spawn (member exports (module child_process))))
|
||||
"cat" // def (parameter 0 (member spawn (member exports (module child_process))))
|
||||
);
|
||||
};
|
||||
3
javascript/ql/test/ApiGraphs/partial-invoke/package.json
Normal file
3
javascript/ql/test/ApiGraphs/partial-invoke/package.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"name": "partial-invoke"
|
||||
}
|
||||
Reference in New Issue
Block a user