[MacRuby-devel] [MacRuby] #386: binding with block does not work
MacRuby
ruby-noreply at macosforge.org
Thu Oct 15 05:38:02 PDT 2009
#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/>
More information about the MacRuby-devel
mailing list