Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return early if self is undefined #124

Closed
wants to merge 1 commit into from
Closed

Return early if self is undefined #124

wants to merge 1 commit into from

Conversation

tuespetre
Copy link

Return early if self is undefined, for environments that do not define 'self' (an example would be running a browserified script using ReactJS.NET.) This prevents a ReferenceError from occurring.

Return early if self is undefined, for environments that do not define 'self' (an example would be running a browserified script using ReactJS.NET.) This prevents a ReferenceError from occurring.
@josh
Copy link
Contributor

josh commented Apr 17, 2015

The polyfill only designed to run in a browser environment, which is why we have the self requirement.

I'd probably suggest omitting it from your browserified bundle in that case.

@mislav
Copy link
Contributor

mislav commented Apr 19, 2015

Please see #31

@josh josh closed this May 4, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2020
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