[MacRuby] #386: binding with block does not work
#386: binding with block does not work ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- {{{ $ cat y.rb class Foo def get_binding binding end end b = Foo.new.get_binding { "got it"} p eval "block_given?", b p eval "yield", b }}} {{{ $ macruby y.rb false (eval):in `<main>': no block given (LocalJumpError) from core:in `eval:' from y.rb:in `<main>' }}} {{{ $ ruby y.rb true "got it" }}} I added a failing test for test_vm/eval.rb -- Ticket URL: <http://www.macruby.org/trac/ticket/386> MacRuby <http://macruby.org/>
#386: binding with block does not work ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: critical | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------+----------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed Comment: Thanks for the test case, I merged it and fixed the problem in r2819. -- Ticket URL: <http://www.macruby.org/trac/ticket/386#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby