Skip to content

Commit 0247de7

Browse files
committed
JS: Add a .vue file to vuex test
1 parent a2b9131 commit 0247de7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<script>
2+
import { mapGetters } from 'vuex';
3+
4+
export default {
5+
computed: {
6+
...mapGetters(['taintedGetter', 'untaintedGetter'])
7+
},
8+
methods: {
9+
sinks() {
10+
sink(this.taintedGetter); // NOT OK
11+
sink(this.untaintedGetter); // OK
12+
}
13+
}
14+
};
15+
</script>

0 commit comments

Comments
 (0)