diff options
Diffstat (limited to 'src/lib_string.c')
| -rw-r--r-- | src/lib_string.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib_string.c b/src/lib_string.c index c7f37bc75..76b0730ac 100644 --- a/src/lib_string.c +++ b/src/lib_string.c | |||
| @@ -737,10 +737,6 @@ LUALIB_API int luaopen_string(lua_State *L) | |||
| 737 | GCtab *mt; | 737 | GCtab *mt; |
| 738 | global_State *g; | 738 | global_State *g; |
| 739 | LJ_LIB_REG(L, LUA_STRLIBNAME, string); | 739 | LJ_LIB_REG(L, LUA_STRLIBNAME, string); |
| 740 | #if defined(LUA_COMPAT_GFIND) && !LJ_52 | ||
| 741 | lua_getfield(L, -1, "gmatch"); | ||
| 742 | lua_setfield(L, -2, "gfind"); | ||
| 743 | #endif | ||
| 744 | mt = lj_tab_new(L, 0, 1); | 740 | mt = lj_tab_new(L, 0, 1); |
| 745 | /* NOBARRIER: basemt is a GC root. */ | 741 | /* NOBARRIER: basemt is a GC root. */ |
| 746 | g = G(L); | 742 | g = G(L); |
