merging node into master -- you can now pass the --narwhal flag to use narwhal instead. All tests are executing successfully against both Node.js and Narwhal/Rhino backends

This commit is contained in:
Jeremy Ashkenas
2010-02-07 12:52:07 -05:00
61 changed files with 3918 additions and 1236 deletions

View File

@@ -1,5 +1,5 @@
(function(){
var File, OS, Readline, checkForErrors, coffeePath, factories, loader;
var File, OS, Readline, checkForErrors, coffeePath, factories, loader, puts;
// The Narwhal-compatibility wrapper for CoffeeScript.
// Require external dependencies.
OS = require('os');
@@ -15,6 +15,8 @@
system.stderr.print(coffeeProcess.stderr.read());
throw new Error("CoffeeScript compile error");
};
// Alias print to "puts", for Node.js compatibility:
puts = print;
// Run a simple REPL, round-tripping to the CoffeeScript compiler for every
// command.
exports.run = function run(args) {