polyfill
polyfill copied to clipboard
Functions unification and fix babel transpile
Hmmm... the use of self
is fine in browsers (which is what I mostly care about) but in Node environments it won't be present and some folks do use it there and complain...
If you wanna pass a global root here's the right argument :
(function () {
try {
return Function('return this')() || (42, eval)('this');
} catch (e) {
return self;
}
})()