[MacRuby] #1252: ERB.new fails with LocalJumpError: no block given
#1252: ERB.new fails with LocalJumpError: no block given -------------------------------------+-------------------------------------- Reporter: umairsiddique@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- ruby 1.9.2p180 {{{
ERB.new("", nil, "%") - works ERB.new("%", nil, "%") -works ERB.new("a", nil, "%") -works }}}
macruby-nightly (05/02) {{{
ERB.new("", nil, "%") - works ERB.new("%", nil, "%") - works ERB.new("a", nil, "%") - FAILS with "LocalJumpError: no block given" }}}
If first argument is empty or contains the same character (along with any others) as the third argument, then it works, otherwise it fails with LocalJumpError: no block given. -- Ticket URL: <http://www.macruby.org/trac/ticket/1252> MacRuby <http://macruby.org/>
#1252: ERB.new fails with LocalJumpError: no block given -------------------------------------+-------------------------------------- Reporter: umairsiddique@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: | -------------------------------------+-------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed Comment: Looks like the problem is fixed in master already. {{{ $ ./miniruby -I./lib -r erb -e "p ERB.new('a', nil, '%')" #<ERB:0x4004c9580 @safe_level=nil @src="#coding:UTF-8\n_erbout = ''; _erbout.concat \"a\"; _erbout.force_encoding(__ENCODING__)" @enc=#<Encoding:UTF-8> @filename=nil> }}} Please check out tonight's nightly build and let us know if you still see the problem. -- Ticket URL: <http://www.macruby.org/trac/ticket/1252#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby