michaelficarra/CoffeeScriptRedux — pull request #107 by kevinmehall (2012-12-03 19:37:47+00:00)
Title: Improve NodeJS module system integration and sourceMap stack traces

* Run main script through `module._compile` instead of `eval` so it
has access to nodeJS globals (`require()`, etc), using code
based on jashkenas/coffee-script.
* Use sourceMap to transform line numbers in `require()`'d
CoffeeScript files' stack traces.
* In replacing the stack trace printer, base it on the default
code from v8 that handles all the edge cases.
* Design keeping in mind that other language compilers may
want to monkey-patch `Error.prepareStackTrace` to handle
sourceMaps too.

This currently breaks `--eval` from stdin, and there are a few things I can clean up, so don't merge quite yet.