lib/minjs/ecma262/base.rb in minjs-0.1.10 vs lib/minjs/ecma262/base.rb in minjs-0.2.0

- old
+ new

@@ -37,11 +37,14 @@ sep = ' ' end end #for debug unless options[:no_debug] - if @logger and @logger.debug? + if (@logger and @logger.debug?) || options[:debug] if js.match(/;\z/) and !options[:for_args] + nl = "\n" + end + if js.match(/}\z/) and !options[:for_args] nl = "\n" end end end js = "#{sep}#{js}#{nl}";