diff options
author | Mike Pall <mike> | 2010-02-08 05:27:43 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-02-08 05:27:43 +0100 |
commit | 48d93d8c84eb72e720d90ed7861f353a2c417470 (patch) | |
tree | 1c7c45ea387160c6e5f4ae0f86d29ba6e4d88a1b /src/lj_lex.c | |
parent | 60b5af44222fff87a7184365a7f49654032d4cbf (diff) | |
download | luajit-48d93d8c84eb72e720d90ed7861f353a2c417470.tar.gz luajit-48d93d8c84eb72e720d90ed7861f353a2c417470.tar.bz2 luajit-48d93d8c84eb72e720d90ed7861f353a2c417470.zip |
Redesign of prototype generation, part 2: late init of chunkname.
Diffstat (limited to 'src/lj_lex.c')
-rw-r--r-- | src/lj_lex.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lj_lex.c b/src/lj_lex.c index 28aad901..6cb785b5 100644 --- a/src/lj_lex.c +++ b/src/lj_lex.c | |||
@@ -333,10 +333,6 @@ void lj_lex_setup(lua_State *L, LexState *ls) | |||
333 | setstrV(L, L->top++, lj_err_str(L, LJ_ERR_XBCLOAD)); | 333 | setstrV(L, L->top++, lj_err_str(L, LJ_ERR_XBCLOAD)); |
334 | lj_err_throw(L, LUA_ERRSYNTAX); | 334 | lj_err_throw(L, LUA_ERRSYNTAX); |
335 | } | 335 | } |
336 | /* This is an unanchored GCstr before it's stored in the prototype. | ||
337 | ** Do this last since next() calls the reader which may call the GC. | ||
338 | */ | ||
339 | ls->chunkname = lj_str_newz(L, ls->chunkarg); | ||
340 | } | 336 | } |
341 | 337 | ||
342 | /* Cleanup lexer state. */ | 338 | /* Cleanup lexer state. */ |