lib/ruby2js/converter/class2.rb in ruby2js-4.0.5 vs lib/ruby2js/converter/class2.rb in ruby2js-4.1.0

- old
+ new

@@ -97,11 +97,10 @@ end end walk[@ast] - # process leading initializers in constructor while constructor.length == 1 and constructor.first.type == :begin constructor = constructor.first.children.dup end # emit additional class declarations @@ -114,9 +113,10 @@ put(index == 0 ? @nl : @sep) index += 1 put 'static #$' + cvar.to_s[2..-1] end + # process leading initializers in constructor while constructor.length > 0 and constructor.first.type == :ivasgn put(index == 0 ? @nl : @sep) index += 1 statement = constructor.shift put '#'