diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-08-12 08:10:09 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-08-12 08:10:09 +0900 |
| commit | 80893811c0e56d7cc61b100d546a44ceab2e43a4 (patch) | |
| tree | 7ee7c0306305d3325890b2c18583582c26eb300b /src | |
| parent | e1b170160b06542a3a2dcf052a3277ca3d076c23 (diff) | |
| download | mruby-80893811c0e56d7cc61b100d546a44ceab2e43a4.tar.gz mruby-80893811c0e56d7cc61b100d546a44ceab2e43a4.zip | |
class.c: `const_missing` do not have to be in the backtrace; ref #5528
Diffstat (limited to 'src')
| -rw-r--r-- | src/class.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/class.c b/src/class.c index cf438d55e..6cf93414a 100644 --- a/src/class.c +++ b/src/class.c @@ -2460,6 +2460,7 @@ mrb_mod_const_missing(mrb_state *mrb, mrb_value mod) mrb_sym sym; mrb_get_args(mrb, "n", &sym); + mrb->c->ci->mid = 0; if (mrb_class_real(mrb_class_ptr(mod)) != mrb->object_class) { mrb_name_error(mrb, sym, "uninitialized constant %v::%n", mod, sym); |
