mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
17 lines
346 B
JavaScript
17 lines
346 B
JavaScript
let Vue = require('vue');
|
|
|
|
new Vue( {
|
|
created: () => this, // $ Alert
|
|
computed: {
|
|
x: () => this, // $ Alert
|
|
y: { get: () => this }, // $ Alert
|
|
z: { set: () => this } // $ Alert
|
|
},
|
|
methods: {
|
|
arrow: () => this, // $ Alert
|
|
nonArrow: function() { this; },
|
|
arrowWithoutThis: () => 42,
|
|
arrowWithNestedThis: () => (() => this)
|
|
}
|
|
});
|