Closed prophile closed 2 weeks ago
@prophile do you get the same result with:
equals: function (a, b) {
console.log(this);
return true;
}
this
within arrow functions use the this
from the scope with which they were created rather than the caller.
Ach how embarrassing, it was a long day. Careless mistake on my part, sorry for the noise!
Consider the following code:
The spec says:
and:
The polyfill in f7c550b currently prints
undefined
however.