jrburke/r.js — pull request #79 by jbeard4 (2012-01-12 02:23:16+00:00)
Title: improved logger, support for more js shells, and quit() env module

Sorry this is a bit of a messy patch - I made a bunch of changes in an anonymous clone of r.js before forking and cloning my own, so it includes a number of small contributions.

This is my first contribution to r.js, but I think I sent a CLA in a few months ago.

Changes:

* Added support for 'spartan' shell environments. These are defined to be environments that expose global print() and load() functions, and that expose command-line arguments on top-level Arguments array. This now works for spidermonkey (Mozilla), jsc (Webkit), and v8 (Chrome) implementations. v8 must be patched to expose command-line arguments as top-level Arguments array. Rhino can also be considered a spartan shell environment.
* Improved logger module to accept multiple arguments, like console.log.
* Added quit() module for node, rhino, and spartan shell environments.