make the compiler use 'obj = or default' for default values.

This commit is contained in:
Jeremy Ashkenas
2010-07-26 23:58:06 -04:00
parent 9be1453886
commit b4ef4a9e28
6 changed files with 20 additions and 20 deletions

View File

@@ -30,7 +30,7 @@ lexer = new Lexer
# Compile a string of CoffeeScript code to JavaScript, using the Coffee/Jison
# compiler.
exports.compile = compile = (code, options) ->
options or= {}
options = or {}
try
(parser.parse lexer.tokenize code).compile options
catch err