Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 992c144 commit d626e79Copy full SHA for d626e79
1 file changed
javascript/ql/test/library-tests/TripleDot/useuse.js
@@ -28,3 +28,26 @@ function t2() {
28
}
29
sink(obj.field); // $ hasValueFlow=t2.1
30
31
+
32
+function t3() {
33
+ function inner(obj) {
34
+ sink(obj.foo); // $ hasValueFlow=t3.2 MISSING: hasValueFlow=t3.1
35
+ }
36
37
+ inner({foo: source('t3.1')});
38
39
+ let obj = {};
40
+ obj.foo = source('t3.2');
41
+ inner(obj);
42
+}
43
44
+function t4() {
45
+ class C {
46
+ constructor(x) {
47
+ this.foo = x;
48
+ sink(this.foo); // $ MISSING: hasValueFlow=t4.1
49
50
51
+ const c = new C(source('t4.1'));
52
+ sink(c.foo); // $ hasValueFlow=t4.1
53
0 commit comments