diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-08-02 09:22:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-08-02 09:22:27 +0000 |
commit | 6689997b5eec76e1f3a0f5670f963aa8ae193417 (patch) | |
tree | 17e1f9d1a3b3f471e806310ea15f84c8d9ea998c /eval.c | |
parent | f32c76a2668cdbee36f1c6515693b41428f865e7 (diff) | |
download | ruby-6689997b5eec76e1f3a0f5670f963aa8ae193417.tar.gz |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -8110,6 +8110,9 @@ rb_cont_call(argc, argv, cont) { rb_thread_t th = rb_thread_check(cont); + if (th->next != curr_thread) { + rb_raise(rb_eRuntimeError, "continuation called across threads"); + } switch (argc) { case 0: th->result = Qnil; |