mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
JS: Add test
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import 'dummy';
|
||||
|
||||
class Foo {
|
||||
a() {
|
||||
/** calls:Foo.b */
|
||||
this.b();
|
||||
}
|
||||
|
||||
/** name:Foo.b */
|
||||
b() {}
|
||||
}
|
||||
|
||||
class Bar {
|
||||
a() {
|
||||
/** calls:Bar.b */
|
||||
this.b();
|
||||
}
|
||||
|
||||
/** name:Bar.b */
|
||||
b() {}
|
||||
}
|
||||
|
||||
function callA(x) {
|
||||
x.a();
|
||||
}
|
||||
callA(new Foo);
|
||||
callB(new Bar);
|
||||
Reference in New Issue
Block a user