tobie/modulr-node — pull request #10 by CGamesPlay (2011-12-06 03:46:31+00:00)
Title: Debugging aid for module exceptions

Hi Tobie, I made a change to make debugging errors in modules easier. By giving a name to the anonymous module function, the stack trace is much more useful if a module throws an error:

module$path$to$module
require
module$path$to$other
require
(anonymous function)

It's worth pointing out that the methods are still anonymous and are not added to the global scope (try it!).