Backport #2120 » local_variables_in_for_binding_segv.patch
vm.c (working copy) | ||
---|---|---|
int i;
|
||
for (i = 0; i < env->block.iseq->local_table_size; i++) {
|
||
ID lid = env->block.iseq->local_table[i];
|
||
if (lid) {
|
||
if (rb_is_local_id(lid)) {
|
||
rb_ary_push(ary, ID2SYM(lid));
|
||
}
|
||
}
|