Skip to content

Commit 84c788a

Browse files
committed
JS: Add API graph test for explicit 'this' passing
1 parent a7173e0 commit 84c788a

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

javascript/ql/test/ApiGraphs/explicit-this/VerifyAssertions.expected

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import ApiGraphs.VerifyAssertions
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "explicit-this",
3+
"dependencies": {
4+
"something": "*"
5+
}
6+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const lib = require('something');
2+
3+
function f() {
4+
this.two(); /** use=moduleImport("something").getMember("exports").getMember("one").getMember("two").getReturn() */
5+
}
6+
7+
f.call(lib.one);

0 commit comments

Comments
 (0)