aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-04 05:28:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-04 05:28:50 +0000
commit4aaa5493f94965fb3bbf85628f59310ff1a7a8d4 (patch)
tree63e83ad6b21b9f45b5b1458156f273625a9301da /eval.c
parentdd9b0df999306d9f4106eb9aaad744b42a9cddc8 (diff)
downloadruby-4aaa5493f94965fb3bbf85628f59310ff1a7a8d4.tar.gz
* eval.c (method_proc): should specify YIELD_FUNC_SVALUE.
[ruby-dev:21107] * marshal.c (w_object): should not call w_extended for USRMARSHAL dump. [ruby-dev:21106] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index d7b78d9d13..35fed14138 100644
--- a/eval.c
+++ b/eval.c
@@ -7604,6 +7604,7 @@ method_proc(method)
Data_Get_Struct(proc, struct BLOCK, bdata);
bdata->body->nd_file = mdata->body->nd_file;
nd_set_line(bdata->body, nd_line(mdata->body));
+ bdata->body->nd_state = YIELD_FUNC_SVALUE;
return proc;
}
@@ -8479,8 +8480,6 @@ rb_thread_schedule()
int need_select = 0;
int select_timeout = 0;
- if (ruby_in_compile) abort();
-
rb_thread_pending = 0;
if (curr_thread == curr_thread->next
&& curr_thread->status == THREAD_RUNNABLE)