1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (return_jump): fix "can't across thread" error message

when no thread associated.
  http://www.namikilab.tuat.ac.jp/~sasada/diary/200507.html#d31


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2005-08-05 00:50:46 +00:00
parent 6c8633ab99
commit aa2de9e3e0
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Fri Aug 5 08:08:05 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (return_jump): fix "can't across thread" error message
when no thread associated.
http://www.namikilab.tuat.ac.jp/~sasada/diary/200507.html#d31
Fri Aug 5 00:25:12 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* ext/tk/tcltklib.c: refactoring - extract ruby string <->

2
eval.c
View file

@ -4763,7 +4763,7 @@ return_jump(retval)
tt->retval = retval;
JUMP_TAG(TAG_RETURN);
}
if (tt->tag == PROT_THREAD) {
if (tt->tag == PROT_THREAD && tt->prev) {
rb_raise(rb_eThreadError, "return can't jump across threads");
}
tt = tt->prev;