Project

General

Profile

« Previous | Next » 

Revision 80f7f8d0

Added by mame (Yusuke Endoh) about 15 years ago

  • compile.c (iseq_compile_each), vm_insnhelper.c (vm_invoke_block,
    vm_throw): allow "return" and "yield" even in singleton class
    definition. based on a patch from wanabe <s.wanabe AT gmail.com>
    for "return". [ruby-core:21379] [ruby-dev:40975]

  • insns.def (defineclass): ditto (straightforwardly push block ptr,
    instead of dfp ptr with special flag).

  • vm_core.h (RUBY_VM_CLASS_SPECIAL_P): ditto (no longer needed).

  • proc.c (proc_new): ditto (remove handling for special flag).

  • bootstraptest/test_jump.rb: add tests for above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e