summaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-15 02:27:29 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-15 02:27:29 +0000
commit30e6eb7a7b152973450bb35f5b7866e673cadaeb (patch)
tree551e5048d5359375ec562a5a2b8c425e189a2c87 /error.c
parente60ef9787ca68943b86738f08a94a50cdbe9c692 (diff)
downloadruby-30e6eb7a7b152973450bb35f5b7866e673cadaeb.tar.gz
ruby-30e6eb7a7b152973450bb35f5b7866e673cadaeb.tar.xz
ruby-30e6eb7a7b152973450bb35f5b7866e673cadaeb.zip
* eval.c (rb_yield_0): should not re-submit TAG_BREAK if this
yield is not break destination. [ruby-dev:23197] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/error.c b/error.c
index 50ff98f5e..c0999f84c 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;
}