mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
update filename before appending file debug info
This commit is contained in:
@@ -2449,6 +2449,7 @@ scope_finish(codegen_scope *s)
|
||||
irep->pool = (mrb_value *)codegen_realloc(s, irep->pool, sizeof(mrb_value)*irep->plen);
|
||||
irep->syms = (mrb_sym *)codegen_realloc(s, irep->syms, sizeof(mrb_sym)*irep->slen);
|
||||
if (s->filename) {
|
||||
s->irep->filename = mrb_parser_get_filename(s->parser, s->filename_index);
|
||||
mrb_debug_info_append_file(mrb, s->irep, s->debug_start_pos, s->pc);
|
||||
|
||||
fname_len = strlen(s->filename);
|
||||
|
||||
Reference in New Issue
Block a user