diff --git a/ChangeLog b/ChangeLog index 0679e7fbea..0c366f807f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Nov 29 16:56:24 2009 Nobuyoshi Nakada + + * vm_eval.c (check_funcall_failed): pass ID. [ruby-core:26934] + Sun Nov 29 06:37:53 2009 Aaron Patterson * lib/rexml/formatters/default.rb (write_attribute): fix an diff --git a/vm_eval.c b/vm_eval.c index 18cc8361d3..549b28becc 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -255,7 +255,7 @@ check_funcall_exec(struct rescue_funcall_args *args) static VALUE check_funcall_failed(struct rescue_funcall_args *args, VALUE e) { - if (rb_respond_to(args->recv, args->sym)) { + if (rb_respond_to(args->recv, SYM2ID(args->sym))) { rb_exc_raise(e); } return Qundef;