Ticket #386 (closed defect: fixed)
binding with block does not work
| Reported by: | jazzbox@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | critical | Milestone: | MacRuby 0.5 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
$ 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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


