diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2012-12-22 00:11:19 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2012-12-22 00:11:19 +0900 |
| commit | 141d0d841c05a2ea75b3eeaec7cc26d9ba0e3307 (patch) | |
| tree | 8d722baabb59d6155447e166e7dd1f02cea0a2d2 | |
| parent | 6a16cad1bf8925498f655e4cac491aa95dbc2963 (diff) | |
| download | mruby-141d0d841c05a2ea75b3eeaec7cc26d9ba0e3307.tar.gz mruby-141d0d841c05a2ea75b3eeaec7cc26d9ba0e3307.zip | |
should copy lineno info to child scope
| -rw-r--r-- | src/codegen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/codegen.c b/src/codegen.c index 2afd3a146..c6afa0184 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -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; } |
