dynjs/dynjs — pull request #76 by t-beckmann (2013-12-19 08:41:52+00:00)
Title: Fix for JavaClassModuleProvider registering functions in module exports.

In DynJS 2.3.0 the scoping of variables was implemented and the VariableEnvironment got introduced. Along these changes updating the JavaClassModuleProvider was forgotten. Before my fix, the module.exports object of the global environment was extracted and the exports added to it. However, the code in ModuleProvider.findAndLoad() uses the local environment for providing the module object and later on fetching the exports object. This exports object is empty in all cases! As a result all my internal APIs failed miserably.

It took a while to figure this out, please merge the change fixing the issue for other people as well. I like DynJS a lot, it's great work!

Best regards,
Thomas.