lib/minjs/ecma262/base.rb in minjs-0.2.2 vs lib/minjs/ecma262/base.rb in minjs-0.3.0
- old
+ new
@@ -22,10 +22,10 @@
end
if prev
if prev.match(/[\w\$]\z/) and js.match(/\A[\w\$]/)
sep = ' '
end
- #;; means empty statement that must not be deleted
+ #';;' means 'empty statement' that must not be deleted
if prev.match(/;;\Z/)
prev.sub!(/;;\Z/, ";")
elsif prev.match(/;\Z/) and js == "}"
prev.sub!(/;\Z/, "")
elsif prev.match(/;\Z/) and js == ";" and !options[:for_args]