mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
* vm.c, insns.def, eval.c, vm_insnhelper.c: fix CREF handling.
VM value stack frame of block contains cref information. (dfp[-1] points CREF) * compile.c, eval_intern.h, eval_method.c, load.c, proc.c, vm_dump.h, vm_core.h: ditto. * include/ruby/ruby.h, gc.c: remove T_VALUES because of above changes. * bootstraptest/test_eval.rb, test_knownbug.rb: move solved test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2e5e857a0b
commit
385f0e8af6
18 changed files with 234 additions and 344 deletions
|
@ -463,7 +463,7 @@ rb_undef(VALUE klass, ID id)
|
|||
VALUE origin;
|
||||
NODE *body;
|
||||
|
||||
if (ruby_cbase() == rb_cObject && klass == rb_cObject) {
|
||||
if (rb_vm_cbase() == rb_cObject && klass == rb_cObject) {
|
||||
rb_secure(4);
|
||||
}
|
||||
if (rb_safe_level() >= 4 && !OBJ_TAINTED(klass)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue