prevent infinite recursion
add testcase
add LUAJIT_ENABLE_LUA52COMPAT back
Merge pull request #480 from luvit/fixes/lua52compat

add LUAJIT_ENABLE_LUA52COMPAT back
Merge pull request #478 from luvit/fixes/prevent_infinite_recursion

prevent infinite recursion
remove the loop