mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
should copy lineno info to child scope
This commit is contained in:
@@ -2089,6 +2089,7 @@ scope_new(mrb_state *mrb, codegen_scope *prev, node *lv)
|
||||
if (p->filename) {
|
||||
p->lines = (short*)mrb_malloc(mrb, sizeof(short)*p->icapa);
|
||||
}
|
||||
p->lineno = prev->lineno;
|
||||
return p;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user