Files
2025-02-28 13:27:28 +01:00

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)
}
});