error: set trace of caller for API written in LuaC
In scope of the #9914 issue we are setting error trace for API to the caller frame. For the API written in LuaC without any Lua code around it is easy task. Just make `luaT_error` set the proper trace. By the way test we don't mess up trace for code evaluated thru netbox. Part of #9914 NO_CHANGELOG=incomplete NO_DOC=incomplete
Showing
- src/box/lua/call.c 1 addition, 1 deletionsrc/box/lua/call.c
- src/box/lua/error.cc 5 additions, 31 deletionssrc/box/lua/error.cc
- src/lua/error.c 30 additions, 1 deletionsrc/lua/error.c
- src/lua/error.h 20 additions, 1 deletionsrc/lua/error.h
- test/box-luatest/error_subsystem_improvements_test.lua 34 additions, 0 deletionstest/box-luatest/error_subsystem_improvements_test.lua
- test/unit/CMakeLists.txt 9 additions, 0 deletionstest/unit/CMakeLists.txt
- test/unit/lua_error.c 116 additions, 0 deletionstest/unit/lua_error.c
Loading
Please register or sign in to comment