Sha256: 5dbc6d5d82c1e0cdbec711289984acf0b6924c160ae1499eff48c3b5135b1cee

Contents?: true

Size: 283 Bytes

Versions: 49

Compression:

Stored size: 283 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
      put 'break'
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
ruby2js-3.0.4 lib/ruby2js/converter/break.rb
ruby2js-3.0.3 lib/ruby2js/converter/break.rb
ruby2js-3.0.2 lib/ruby2js/converter/break.rb
ruby2js-3.0.1 lib/ruby2js/converter/break.rb
ruby2js-3.0.0 lib/ruby2js/converter/break.rb
ruby2js-2.1.24 lib/ruby2js/converter/break.rb
ruby2js-2.1.23 lib/ruby2js/converter/break.rb
ruby2js-2.1.22 lib/ruby2js/converter/break.rb
ruby2js-2.1.21 lib/ruby2js/converter/break.rb
ruby2js-2.1.20 lib/ruby2js/converter/break.rb
ruby2js-2.1.19 lib/ruby2js/converter/break.rb
ruby2js-2.1.18 lib/ruby2js/converter/break.rb
ruby2js-2.1.17 lib/ruby2js/converter/break.rb
ruby2js-2.1.16 lib/ruby2js/converter/break.rb
ruby2js-2.1.15 lib/ruby2js/converter/break.rb
ruby2js-2.1.14 lib/ruby2js/converter/break.rb
ruby2js-2.1.13 lib/ruby2js/converter/break.rb
ruby2js-2.1.12 lib/ruby2js/converter/break.rb
ruby2js-2.1.11 lib/ruby2js/converter/break.rb
ruby2js-2.1.10 lib/ruby2js/converter/break.rb