From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 23 Apr 2018 19:19:56 +0300 From: Vladimir Davydov Subject: Re: [PATCH 1/8] lua: fix box.error.raise Message-ID: <20180423161956.nb27yxs52tewggr6@esperanza> References: <860da7f4e8760673d6052614a5df1d4bdb67c06b.1523903144.git.v.shpilevoy@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <860da7f4e8760673d6052614a5df1d4bdb67c06b.1523903144.git.v.shpilevoy@tarantool.org> To: Vladislav Shpilevoy Cc: tarantool-patches@freelists.org List-ID: 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