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 how global define is unset #73

Merged
merged 1 commit into from
Apr 25, 2016
Merged

Fix how global define is unset #73

merged 1 commit into from
Apr 25, 2016

Conversation

novemberborn
Copy link
Contributor

define was just a local variable. Actually unset the global define when requiring a Node module.

Looks like there was no test for this behavior. I'd add it but not quite sure where to start.


This fixes TypeError: ESP.parse is not a function output in test runs, see this Travis build for an example. In this case Intern uses loader to load a custom reporter, which then requires istanbul/lib/instrumenter. This module requires esprima which erroneously selects the AMD loader.

`define` was just a local variable. Actually unset the global `define` when
requiring a Node module.
@kitsonk kitsonk self-assigned this Apr 25, 2016
@kitsonk kitsonk added this to the 2016.04 milestone Apr 25, 2016
@kitsonk kitsonk added the bug label Apr 25, 2016
@kitsonk kitsonk merged commit c4b4503 into master Apr 25, 2016
novemberborn added a commit to novemberborn/routing that referenced this pull request Apr 25, 2016
@novemberborn novemberborn deleted the fix-unset-global-define branch April 26, 2016 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants