I've made some improvements (I think) that I've made to
require-related command line switches since 1.7R3. You can read about
it here:
http://groups.google.com/group/mozilla-rhino/browse_frm/thread/ecbcfdcb28e01292/cb6c896ec2cef230
1.7R4 should be out within the next month or two and will contain
these changes. If you're interested in a fuller implementation of
CommonJS related features on top of Rhino you may also want to have a
look at RingoJS (http://ringojs.org).
Hannes
2012/2/25 jg <jgra...@gmail.com>: