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

Support nodejs 'global' (with tests) #49

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mzahor
Copy link

@mzahor mzahor commented Nov 17, 2015

This is duplicate of #44 but with tests.

@@ -30,7 +30,7 @@ function runModule(moduleFn, dependencyPath, requiringFilePath) {
if (module === undefined) {
module = { exports: {} };
cachedModules[dependencyPath] = module;
moduleFn(requireFn(dependencyPath), module, module.exports, dirname(requiringFilePath), basename(requiringFilePath));
moduleFn(requireFn(dependencyPath), module, module.exports, window, dirname(requiringFilePath), basename(requiringFilePath));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we put it at the end? I mean, as the last argument?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, will do this in the next update

@mzahor mzahor changed the title Support nodejs 'global' Support nodejs 'global' (with tests) Nov 18, 2015
@mzahor
Copy link
Author

mzahor commented Nov 20, 2015

@pkozlowski-opensource Should I fix something else to have this merged in?

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