-
Notifications
You must be signed in to change notification settings - Fork 30
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
base: master
Are you sure you want to change the base?
Conversation
@@ -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)); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
@pkozlowski-opensource Should I fix something else to have this merged in? |
This is duplicate of #44 but with tests.