We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1ea2a6 commit 497b19cCopy full SHA for 497b19c
src/error.c
@@ -174,7 +174,7 @@ exc_get_backtrace(mrb_state *mrb, mrb_value exc)
174
175
attr_name = mrb_intern_lit(mrb, "backtrace");
176
backtrace = mrb_iv_get(mrb, exc, attr_name);
177
- if (mrb_nil_p(backtrace)) {
+ if (!mrb_array_p(backtrace)) {
178
if (mrb_obj_ptr(exc) == mrb->backtrace.exc && mrb->backtrace.n > 0) {
179
backtrace = mrb_restore_backtrace(mrb);
180
mrb->backtrace.n = 0;
0 commit comments