diff options
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1785,6 +1785,7 @@ static void funcstat (LexState *ls, int line) { | |||
1785 | luaX_next(ls); /* skip FUNCTION */ | 1785 | luaX_next(ls); /* skip FUNCTION */ |
1786 | ismethod = funcname(ls, &v); | 1786 | ismethod = funcname(ls, &v); |
1787 | body(ls, &b, ismethod, line); | 1787 | body(ls, &b, ismethod, line); |
1788 | check_readonly(ls, &v); | ||
1788 | luaK_storevar(ls->fs, &v, &b); | 1789 | luaK_storevar(ls->fs, &v, &b); |
1789 | luaK_fixline(ls->fs, line); /* definition "happens" in the first line */ | 1790 | luaK_fixline(ls->fs, line); /* definition "happens" in the first line */ |
1790 | } | 1791 | } |