Fix `Symbol.all_symbols` to include preallocated symbols; ref
@@ -25,6 +25,9 @@ mrb_sym_all_symbols(mrb_state *mrb, mrb_value self)
mrb_sym i, lim;
mrb_value ary = mrb_ary_new_capa(mrb, mrb->symidx);
+ for (i=1; i<MRB_PRESYM_MAX; i++) {
+ mrb_ary_push(mrb, ary, mrb_symbol_value(i));
+ }
for (i=1, lim=mrb->symidx+1; i<lim; i++) {
mrb_ary_push(mrb, ary, mrb_symbol_value(i+MRB_PRESYM_MAX));
}
