The moment of truth: CoffeeScript has now compiled itself ten times over.

This commit is contained in:
Jeremy Ashkenas
2010-02-13 01:13:08 -05:00
parent 126f6c2d88
commit b965fcf32d
6 changed files with 24 additions and 35 deletions

View File

@@ -27,8 +27,7 @@
exports.compile = function compile(script, source) {
var options;
source = source || 'error';
options = {
};
options = {};
if (this.options.no_wrap) {
options.no_wrap = true;
}
@@ -94,8 +93,7 @@
// Use OptionParser for all the options.
exports.parse_options = function parse_options() {
var oparser, opts, paths;
opts = (this.options = {
});
opts = (this.options = {});
oparser = (this.option_parser = new optparse.OptionParser(SWITCHES));
oparser.add = oparser['on'];
oparser.add('interactive', function() {