Skip to content

Commit

Permalink
pass a block into method which is called by rb_vm_call_super(). becau…
Browse files Browse the repository at this point in the history
…se if invoke the rb_block_given_p() on its method, rb_block_given_p() can't run correctly
  • Loading branch information
Watson1978 committed Jun 25, 2012
1 parent 320def3 commit 327b461
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 0 additions & 4 deletions spec/frozen/tags/macruby/core/range/max_tags.txt

This file was deleted.

4 changes: 0 additions & 4 deletions spec/frozen/tags/macruby/core/range/min_tags.txt

This file was deleted.

3 changes: 2 additions & 1 deletion vm.h
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,9 @@ rb_vm_call(VALUE self, SEL sel, int argc, const VALUE *argv)
static inline VALUE
rb_vm_call_super(VALUE self, SEL sel, int argc, const VALUE *argv)
{
rb_vm_block_t *b = rb_vm_current_block();
return rb_vm_call0(rb_vm_current_vm(), 0, self, (Class)CLASS_OF(self), sel,
NULL, DISPATCH_SUPER, argc, argv);
b, DISPATCH_SUPER, argc, argv);
}

static inline VALUE
Expand Down

0 comments on commit 327b461

Please sign in to comment.