Skip to content

Commit

Permalink
lj_parse.c: Set declname for file-level code to <toplevel>
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed May 10, 2018
1 parent 473cb19 commit cd172fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lj_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2651,7 +2651,7 @@ GCproto *lj_parse(LexState *ls)
parse_chunk(ls);
if (ls->tok != TK_eof)
err_token(ls, TK_eof);
pt = fs_finish(ls, ls->linenumber, "");
pt = fs_finish(ls, ls->linenumber, "<toplevel>");
L->top--; /* Drop chunkname. */
lua_assert(fs.prev == NULL);
lua_assert(ls->fs == NULL);
Expand Down

0 comments on commit cd172fc

Please sign in to comment.