aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm.c b/vm.c
index 4867e05444..6a7fa42824 100644
--- a/vm.c
+++ b/vm.c
@@ -376,8 +376,8 @@ collect_local_variables_in_env(rb_env_t *env, VALUE ary)
if (env->block.lfp == env->block.dfp) {
return 0;
}
- for (i = 0; i < env->block.iseq->local_size; i++) {
- ID lid = env->block.iseq->local_tbl[i];
+ for (i = 0; i < env->block.iseq->local_table_size; i++) {
+ ID lid = env->block.iseq->local_table[i];
if (lid) {
rb_ary_push(ary, rb_str_new2(rb_id2name(lid)));
}
@@ -986,7 +986,7 @@ th_backtrace_each(rb_thread_t *th,
rb_iseq_t *iseq = cfp->iseq;
line_no = th_get_sourceline(cfp);
- file = RSTRING_PTR(iseq->file_name);
+ file = RSTRING_PTR(iseq->filename);
str = rb_sprintf("%s:%d:in `%s'",
file, line_no, RSTRING_PTR(iseq->name));
rb_ary_push(ary, str);