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

Fix global ReferenceError #273

Merged
merged 1 commit into from Oct 21, 2019
Merged

Fix global ReferenceError #273

merged 1 commit into from Oct 21, 2019

Conversation

mantoni
Copy link
Member

@mantoni mantoni commented Oct 21, 2019

Purpose (TL;DR) - mandatory

Fixes #272 which was introduced by #270.

Inspect the result of bundling this branch here: https://jsbin.com/godesuduxo/edit?html,js,console

Background (Problem in detail) - optional

The global variable is not provided by Browerify anymore. I don't fully understand why this isn't caught by test runs in browsers yet. Will need to investigate further.

Solution - optional

Use the _global variable which is set to window in browsers.

@mantoni
Copy link
Member Author

mantoni commented Oct 21, 2019

@mantoni mantoni merged commit 049efd8 into master Oct 21, 2019
@mantoni mantoni deleted the fix-global-referenceerror branch October 21, 2019 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ReferenceError when loading lolex is browsers
2 participants