Sha256: f4f678401e4e16cdfcf3fb38ec14897f26abeb2e0b0216b9cb66b1ded2c6f964

Contents?: true

Size: 279 Bytes

Versions: 22

Compression:

Stored size: 279 Bytes

Contents

module Ruby2JS
  class Converter

    # (break
    #   (int 1))

    handle :break do |n=nil|
      raise NotImplementedError, "break argument #{ n.inspect }" if n
      raise NotImplementedError, "break outside of loop" if @next_token == :return
      'break'
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ruby2js-1.15.1 lib/ruby2js/converter/break.rb
ruby2js-1.15.0 lib/ruby2js/converter/break.rb
ruby2js-1.14.1 lib/ruby2js/converter/break.rb
ruby2js-1.14.0 lib/ruby2js/converter/break.rb
ruby2js-1.13.1 lib/ruby2js/converter/break.rb
ruby2js-1.13.0 lib/ruby2js/converter/break.rb
ruby2js-1.12.2 lib/ruby2js/converter/break.rb
ruby2js-1.12.1 lib/ruby2js/converter/break.rb
ruby2js-1.12.0 lib/ruby2js/converter/break.rb
ruby2js-1.11.1 lib/ruby2js/converter/break.rb
ruby2js-1.11.0 lib/ruby2js/converter/break.rb
ruby2js-1.10.0 lib/ruby2js/converter/break.rb
ruby2js-1.9.3 lib/ruby2js/converter/break.rb
ruby2js-1.9.2 lib/ruby2js/converter/break.rb
ruby2js-1.9.1 lib/ruby2js/converter/break.rb
ruby2js-1.9.0 lib/ruby2js/converter/break.rb
ruby2js-1.8.0 lib/ruby2js/converter/break.rb
ruby2js-1.7.0 lib/ruby2js/converter/break.rb
ruby2js-1.6.0 lib/ruby2js/converter/break.rb
ruby2js-1.5.0 lib/ruby2js/converter/break.rb