File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
javascript/ql/test/library-tests/frameworks/Vue Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- instance_getAPropertyValue
1
+ component_getAPropertyValue
2
2
| compont-with-route.vue:0:0:0:0 | compont-with-route.vue | dataA | compont-with-route.vue:31:14:31:34 | this.$r ... ery.foo |
3
3
| compont-with-route.vue:0:0:0:0 | compont-with-route.vue | message | compont-with-route.vue:19:15:19:22 | 'Hello!' |
4
4
| single-component-file-1.vue:0:0:0:0 | single-component-file-1.vue | dataA | single-component-file-1.vue:6:40:6:41 | 42 |
@@ -28,7 +28,7 @@ instance_getAPropertyValue
28
28
| tst.js:85:1:87:2 | new Vue ... e; }\\n}) | created | tst.js:86:38:86:41 | true |
29
29
| tst.js:94:2:96:3 | new Vue ... f,\\n\\t}) | dataA | tst.js:89:22:89:23 | 42 |
30
30
| tst.js:99:2:104:3 | new Vue ... \\t\\t}\\n\\t}) | dataA | tst.js:100:18:100:19 | 42 |
31
- instance_getOption
31
+ component_getOption
32
32
| compont-with-route.vue:0:0:0:0 | compont-with-route.vue | watch | compont-with-route.vue:10:12:16:5 | {\\n ... }\\n } |
33
33
| single-component-file-1.vue:0:0:0:0 | single-component-file-1.vue | data | single-component-file-1.vue:6:11:6:45 | functio ... 42 } } |
34
34
| single-file-component-3.vue:0:0:0:0 | single-file-component-3.vue | data | single-file-component-3-script.js:4:8:4:42 | functio ... 42 } } |
@@ -58,7 +58,7 @@ instance_getOption
58
58
| tst.js:94:2:96:3 | new Vue ... f,\\n\\t}) | data | tst.js:95:9:95:9 | f |
59
59
| tst.js:99:2:104:3 | new Vue ... \\t\\t}\\n\\t}) | data | tst.js:100:9:100:21 | { dataA: 42 } |
60
60
| tst.js:99:2:104:3 | new Vue ... \\t\\t}\\n\\t}) | methods | tst.js:101:12:103:3 | {\\n\\t\\t\\tm: ... ; }\\n\\t\\t} |
61
- instance
61
+ component
62
62
| compont-with-route.vue:0:0:0:0 | compont-with-route.vue |
63
63
| single-component-file-1.vue:0:0:0:0 | single-component-file-1.vue |
64
64
| single-file-component-2.vue:0:0:0:0 | single-file-component-2.vue |
Original file line number Diff line number Diff line change 1
1
import javascript
2
2
import semmle.javascript.security.dataflow.Xss
3
3
4
- query predicate instance_getAPropertyValue ( Vue:: Component c , string name , DataFlow:: Node prop ) {
4
+ query predicate component_getAPropertyValue ( Vue:: Component c , string name , DataFlow:: Node prop ) {
5
5
c .getAPropertyValue ( name ) = prop
6
6
}
7
7
8
- query predicate instance_getOption ( Vue:: Component c , string name , DataFlow:: Node prop ) {
8
+ query predicate component_getOption ( Vue:: Component c , string name , DataFlow:: Node prop ) {
9
9
c .getOption ( name ) = prop
10
10
}
11
11
12
- query predicate instance ( Vue:: Component c ) { any ( ) }
12
+ query predicate component ( Vue:: Component c ) { any ( ) }
13
13
14
14
query predicate instance_heapStep (
15
15
Vue:: InstanceHeapStep step , DataFlow:: Node pred , DataFlow:: Node succ
You can’t perform that action at this time.
0 commit comments