lib/ruby2js/converter/while.rb in ruby2js-1.15.1 vs lib/ruby2js/converter/while.rb in ruby2js-2.0.0

- old
+ new

@@ -6,10 +6,11 @@ # (...)) handle :while do |condition, block| begin next_token, @next_token = @next_token, :continue - "while (#{ parse condition }) {#@nl#{ scope block }#@nl}" + + put 'while ('; parse condition; puts ') {'; scope block; sput '}' ensure @next_token = next_token end end end