mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fixed wandering filename problem
This commit is contained in:
+1
-1
@@ -1157,7 +1157,7 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
|
||||
if (!tree) return;
|
||||
|
||||
if (s->irep && s->pc > 0 && s->filename_index != tree->filename_index) {
|
||||
if (s->irep && s->filename_index != tree->filename_index) {
|
||||
s->irep->filename = mrb_parser_get_filename(s->parser, s->filename_index);
|
||||
mrb_debug_info_append_file(s->mrb, s->irep, s->debug_start_pos, s->pc);
|
||||
s->debug_start_pos = s->pc;
|
||||
|
||||
Reference in New Issue
Block a user