mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
JS: Rename some test predicates to match class name
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
instance_getAPropertyValue
|
||||
component_getAPropertyValue
|
||||
| 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 |
|
||||
| compont-with-route.vue:0:0:0:0 | compont-with-route.vue | message | compont-with-route.vue:19:15:19:22 | 'Hello!' |
|
||||
| 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
|
||||
| tst.js:85:1:87:2 | new Vue ... e; }\\n}) | created | tst.js:86:38:86:41 | true |
|
||||
| tst.js:94:2:96:3 | new Vue ... f,\\n\\t}) | dataA | tst.js:89:22:89:23 | 42 |
|
||||
| tst.js:99:2:104:3 | new Vue ... \\t\\t}\\n\\t}) | dataA | tst.js:100:18:100:19 | 42 |
|
||||
instance_getOption
|
||||
component_getOption
|
||||
| compont-with-route.vue:0:0:0:0 | compont-with-route.vue | watch | compont-with-route.vue:10:12:16:5 | {\\n ... }\\n } |
|
||||
| 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 } } |
|
||||
| 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
|
||||
| tst.js:94:2:96:3 | new Vue ... f,\\n\\t}) | data | tst.js:95:9:95:9 | f |
|
||||
| tst.js:99:2:104:3 | new Vue ... \\t\\t}\\n\\t}) | data | tst.js:100:9:100:21 | { dataA: 42 } |
|
||||
| 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} |
|
||||
instance
|
||||
component
|
||||
| compont-with-route.vue:0:0:0:0 | compont-with-route.vue |
|
||||
| single-component-file-1.vue:0:0:0:0 | single-component-file-1.vue |
|
||||
| single-file-component-2.vue:0:0:0:0 | single-file-component-2.vue |
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import javascript
|
||||
import semmle.javascript.security.dataflow.Xss
|
||||
|
||||
query predicate instance_getAPropertyValue(Vue::Component c, string name, DataFlow::Node prop) {
|
||||
query predicate component_getAPropertyValue(Vue::Component c, string name, DataFlow::Node prop) {
|
||||
c.getAPropertyValue(name) = prop
|
||||
}
|
||||
|
||||
query predicate instance_getOption(Vue::Component c, string name, DataFlow::Node prop) {
|
||||
query predicate component_getOption(Vue::Component c, string name, DataFlow::Node prop) {
|
||||
c.getOption(name) = prop
|
||||
}
|
||||
|
||||
query predicate instance(Vue::Component c) { any() }
|
||||
query predicate component(Vue::Component c) { any() }
|
||||
|
||||
query predicate instance_heapStep(
|
||||
Vue::InstanceHeapStep step, DataFlow::Node pred, DataFlow::Node succ
|
||||
|
||||
Reference in New Issue
Block a user