Skip to content

Commit 95b6b16

Browse files
author
Max Schaefer
committed
JavaScript: Add another API-graph test with re-exports.
1 parent 4e116ba commit 95b6b16

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
| 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. |
12
| 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. |

javascript/ql/test/ApiGraphs/reexport/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ const impl = require("./lib/impl.js");
22

33
module.exports = {
44
impl,
5-
util: require("./lib/utils")
5+
util: require("./lib/utils"),
6+
other: require("./lib/stuff")
67
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function foo(x) { /* use (parameter 0 (member bar (member other (member exports (module reexport)))) */
2+
return x + 1;
3+
}
4+
5+
export const bar = foo;

0 commit comments

Comments
 (0)