From 2fab242f668d719b319d155e3bfad2987117dd29 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 15 Mar 2004 02:27:29 +0000 Subject: * eval.c (rb_yield_0): should not re-submit TAG_BREAK if this yield is not break destination. [ruby-dev:23197] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'error.c') diff --git a/error.c b/error.c index 50ff98f5ec..c0999f84c9 100644 --- a/error.c +++ b/error.c @@ -259,6 +259,9 @@ rb_check_type(x, t) else if (FIXNUM_P(x)) { etype = "Fixnum"; } + else if (SYMBOL_P(x)) { + etype = "Symbol"; + } else if (rb_special_const_p(x)) { etype = RSTRING(rb_obj_as_string(x))->ptr; } -- cgit v1.2.3