diff --git a/lib/command_line.js b/lib/command_line.js index 6b98ae2e..06cd0754 100644 --- a/lib/command_line.js +++ b/lib/command_line.js @@ -96,7 +96,7 @@ } else if (opts.lint) { return lint(js); } else { - return write_js(source, coffee.compile(code)); + return write_js(source, js); } } } catch (err) { diff --git a/src/command_line.coffee b/src/command_line.coffee index d5e05e69..5cae2864 100644 --- a/src/command_line.coffee +++ b/src/command_line.coffee @@ -87,7 +87,7 @@ compile_script: (source, code) -> if opts.run then eval js else if opts.print then puts js else if opts.lint then lint js - else write_js source, coffee.compile code + else write_js source, js catch err if opts.watch then puts err.message else throw err