From b58102c5149918c6b25b8acc9a8363c893c2c99a Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Fri, 25 Dec 2009 19:48:47 -0800 Subject: [PATCH] don't add the no_wrap key to the options hash unless we're going to use it --- lib/coffee_script/command_line.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/coffee_script/command_line.rb b/lib/coffee_script/command_line.rb index be80a7d6..75f3b44d 100644 --- a/lib/coffee_script/command_line.rb +++ b/lib/coffee_script/command_line.rb @@ -127,7 +127,9 @@ Usage: # Compile a single source file to JavaScript. def compile(script, source='') begin - CoffeeScript.compile(script, :no_wrap => @options[:no_wrap]) + options = {} + options[:no_wrap] = true if @options[:no_wrap] + CoffeeScript.compile(script, options) rescue CoffeeScript::ParseError => e STDERR.puts e.message(source) exit(1) unless @options[:watch]