From dd7264ac697ddb305780d7aa51908db392214906 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 29 Nov 2009 07:56:25 +0000 Subject: [PATCH] * vm_eval.c (check_funcall_failed): pass ID. [ruby-core:26934] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ vm_eval.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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;