diff options
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 86f2d07cd8..d7515cd177 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2213,6 +2213,8 @@ vm_yield_setup_block_args(rb_thread_t *th, const rb_iseq_t * iseq, } else { argv[0] = arg0; /* rb_check_array_type(arg0) may change argv */ + /* when to_ary method is invoked and the stack is overwritten, */ + /* so need to restore argv[0]. */ } /* keyword argument */ |