With ES6 javascript offers the use of arrow functions like:
var quadr= x => x * x;
I know this influences the binding of this, arguments, super and new.target. source
This is certainly usefull to ensure a correct this in every scope. But i'm questioning if the binding affects the memory footprint of the script. Are less objects in the execution context? Does this influence the performance of the functions?
And what happens (qua memory and allocation) when we reference a this inside an arrow function, like:
function person(){
this.age=0;
//it's my birthday so...
()=>{
this.age++;
}
}