Match 5.2 debug.setupvalue(fn,1) more closelyLJX-v1.0
commit8f399ccb32d66652c3190bfd6e3b4fa515bcc0f8
authorkatlogic <git@git.git>
Mon, 31 Mar 2014 07:57:20 +0000 (31 09:57 +0200)
committerkatlogic <git@git.git>
Mon, 31 Mar 2014 07:57:20 +0000 (31 09:57 +0200)
tree95324f76fc24f5a0e035b335e456a6ac612bbdf2
parentf95173c82829f5111e632960e22d0161b289819f
Match 5.2 debug.setupvalue(fn,1) more closely

Do equivalent of ESETV for lua_setupvalue, but
only if we identify the uv as actually being
global env.

Signed-off-by: katlogic <git@git.git>
src/lib_base.c
src/lj_api.c
src/lj_func.c
src/lj_load.c
tests/5.2/calls.lua
tests/run.sh