mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 11:01:25 -05:00
Happy Birthday, CoffeeScript-in-CoffeeScript, you just passed the entire test suite.
This commit is contained in:
@@ -53,18 +53,7 @@
|
||||
}
|
||||
opts = this.options;
|
||||
return posix.cat(source).addCallback(function(code) {
|
||||
if (opts.tokens) {
|
||||
return puts(coffee.tokenize(code).join(' '));
|
||||
}
|
||||
if (opts.tree) {
|
||||
return puts(coffee.tree(code).toString());
|
||||
}
|
||||
if (opts.run) {
|
||||
return eval(coffee.compile(code));
|
||||
}
|
||||
if (opts.print) {
|
||||
return puts(coffee.compile(code));
|
||||
}
|
||||
opts.tokens ? puts(coffee.tokenize(code).join(' ')) : opts.tree ? puts(coffee.tree(code).toString()) : opts.run ? eval(coffee.compile(code)) : opts.print ? puts(coffee.compile(code)) : null;
|
||||
return exports.compile_scripts();
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user