* 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:
parent
6c8633ab99
commit
aa2de9e3e0
@ -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>
|
Fri Aug 5 00:25:12 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
* ext/tk/tcltklib.c: refactoring - extract ruby string <->
|
* ext/tk/tcltklib.c: refactoring - extract ruby string <->
|
||||||
|
2
eval.c
2
eval.c
@ -4763,7 +4763,7 @@ return_jump(retval)
|
|||||||
tt->retval = retval;
|
tt->retval = retval;
|
||||||
JUMP_TAG(TAG_RETURN);
|
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");
|
rb_raise(rb_eThreadError, "return can't jump across threads");
|
||||||
}
|
}
|
||||||
tt = tt->prev;
|
tt = tt->prev;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user