dash
dash copied to clipboard
`this` in arrow functions is wrong
let f;
function F() {
this.a = 1;
f = () => console.log(this);
}
new F();
f();
should print F { a: 1 }
but prints undefined