aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lparser.c b/lparser.c
index df9473c2..3abe3d75 100644
--- a/lparser.c
+++ b/lparser.c
@@ -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}