Closed zlatanvasovic closed 7 years ago
You cannot use arrow functions in versions.js
since arrow functions do not bind their own this
.
This means that inside Versions.prototype.something
you cannot use this.property
, because the arrow function (in this case) uses the global this and not the Versions
one. :)
Thanks @delvedor. I really didn't know that. :smile:
Any news on this?
@addaleax @mikeal if is ok for you we can merge this.
@delvedor I’d say feel free to merge any PRs yourself :)
Considering the installer is already ES6-friendly, let's get it to the higher level.
Note: It seems that using
() =>
syntax inversion.js
throws a type-related error (LTS and stable version aren't defined due to the error), so I avoided arrow functions there.