We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50847d6 commit df74e2eCopy full SHA for df74e2e
iseq.c
@@ -1718,7 +1718,12 @@ iseq_data_to_ary(rb_iseq_t *iseq)
1718
for (i=0; i<iseq->local_table_size; i++) {
1719
ID lid = iseq->local_table[i];
1720
if (lid) {
1721
- if (rb_id2str(lid)) rb_ary_push(locals, ID2SYM(lid));
+ if (rb_id2str(lid)) {
1722
+ rb_ary_push(locals, ID2SYM(lid));
1723
+ }
1724
+ else { /* hidden variable from id_internal() */
1725
+ rb_ary_push(locals, ULONG2NUM(iseq->local_table_size-i+1));
1726
1727
}
1728
else {
1729
rb_ary_push(locals, ID2SYM(rb_intern("#arg_rest")));
0 commit comments