[Tarantool-patches] [tarantool-patches] Re: [PATCH 1/1] console: fix usage of an undeclared variable

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Fri Oct 18 00:26:04 MSK 2019


On 17/10/2019 23:19, Cyrill Gorcunov wrote:
> On Thu, Oct 17, 2019 at 11:22:56PM +0200, Vladislav Shpilevoy wrote:
>>> Yes, and it means we will get nil here, and the caller code
>>> threat it as no-error and return empty string upward.
>>
>> No, it was not nil. It was:
>>
>> localhost:3313> 
>> ---
>> - error: 'builtin/box/console.lua:454: variable ''rc'' is not declared'
>> ...
> 
> Aha! I happen to miss that. Thanks for the point!
> 

It would be nil in case a user turned strict mode off.


More information about the Tarantool-patches mailing list