mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
JavaScript: Add another API-graph test with re-exports.
This commit is contained in:
@@ -1 +1,2 @@
|
||||
| lib/stuff.js:1:19:1:103 | /* use ... )))) */ | def (member other (member exports (module reexport))) has no outgoing edge labelled member bar; it has no outgoing edges at all. |
|
||||
| lib/utils.js:1:38:1:120 | /* use ... )))) */ | def (member util (member exports (module reexport))) has no outgoing edge labelled member id; it has no outgoing edges at all. |
|
||||
|
||||
@@ -2,5 +2,6 @@ const impl = require("./lib/impl.js");
|
||||
|
||||
module.exports = {
|
||||
impl,
|
||||
util: require("./lib/utils")
|
||||
util: require("./lib/utils"),
|
||||
other: require("./lib/stuff")
|
||||
};
|
||||
5
javascript/ql/test/ApiGraphs/reexport/lib/stuff.js
Normal file
5
javascript/ql/test/ApiGraphs/reexport/lib/stuff.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function foo(x) { /* use (parameter 0 (member bar (member other (member exports (module reexport)))) */
|
||||
return x + 1;
|
||||
}
|
||||
|
||||
export const bar = foo;
|
||||
Reference in New Issue
Block a user