 +        raise RuntimeError
 +      end
 +      $traced << event
-+    }
+     }
 +    begin
 +      set_trace_func(s)
 +      assert_equal(false, 'hook should have raised error')

     return trace;
 }
 
@@ -4006,6 +4094,8 @@
 	return "class";
       case RUBY_EVENT_END:
 	return "end";

     return ret;
Index: vm_eval.c
===================================================================
--- vm_eval.c	(revision 33354)
+++ vm_eval.c	(working copy)
@@ -68,22 +68,32 @@
       }
       case VM_METHOD_TYPE_NOTIMPLEMENTED:
       case VM_METHOD_TYPE_CFUNC: {
