Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Functions unification and fix babel transpile #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlikDex
Copy link

@AlikDex AlikDex commented Jul 11, 2019

No description provided.

@inexorabletash
Copy link
Owner

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...

@Mouvedia
Copy link

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;
  }
})()

@AlikDex AlikDex changed the title Functions unification and fix babel transplate Functions unification and fix babel transpile Dec 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants