[PATCH 1/8] lua: fix box.error.raise

Vladimir Davydov vdavydov.dev at gmail.com
Mon Apr 23 19:19:56 MSK 2018


On Mon, Apr 16, 2018 at 09:39:11PM +0300, Vladislav Shpilevoy wrote:
> It did not work because raise is implemented as __index metatable
> member, and error() is __call metatable member. The second one
> takes additional implicit argument - self.
> ---
>  src/box/lua/error.cc   | 78 +++++++++++++++++++++++++++++++++-----------------
>  test/box/misc.result   | 39 +++++++++++++++++++++++++
>  test/box/misc.test.lua | 18 ++++++++++++
>  3 files changed, 108 insertions(+), 27 deletions(-)

Ack



More information about the Tarantool-patches mailing list