mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
JS: Add API graph test for explicit 'this' passing
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import ApiGraphs.VerifyAssertions
|
||||
6
javascript/ql/test/ApiGraphs/explicit-this/package.json
Normal file
6
javascript/ql/test/ApiGraphs/explicit-this/package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "explicit-this",
|
||||
"dependencies": {
|
||||
"something": "*"
|
||||
}
|
||||
}
|
||||
7
javascript/ql/test/ApiGraphs/explicit-this/tst.js
Normal file
7
javascript/ql/test/ApiGraphs/explicit-this/tst.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const lib = require('something');
|
||||
|
||||
function f() {
|
||||
this.two(); /** use=moduleImport("something").getMember("exports").getMember("one").getMember("two").getReturn() */
|
||||
}
|
||||
|
||||
f.call(lib.one);
|
||||
Reference in New Issue
Block a user