matthisk / es6console

🔮 Play with ECMAScript compilers
https://es6console.com
MIT License
152 stars 25 forks source link

this in the context of window does not print anything. #8

Open prakashsvmx opened 7 years ago

prakashsvmx commented 7 years ago
function traditionalFn(){
    console.log(this)
}

traditionalFn();

or

var aFunction=()=> console.log(this)

aFunction();

does not print window in the console.

matthisk commented 7 years ago

Thank you for reporting this, I am going to take a look at it.