From: Tobias Ulmer Date: Thu, 28 Jul 2016 17:44:05 +0000 (+0200) Subject: strict: __index() doesn't take a value X-Git-Tag: e2factory-2.3.15rc1~131 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=d408b14e1542cfa7f1a3223a5aeeec55a91b0a99;p=e2factory.git strict: __index() doesn't take a value Signed-off-by: Tobias Ulmer --- diff --git a/generic/strict.lua b/generic/strict.lua index 27834de..8324d85 100644 --- a/generic/strict.lua +++ b/generic/strict.lua @@ -60,7 +60,7 @@ function strict.lock(t) rawset(t, k, v) end - mt.__index = function(t, k, v) + mt.__index = function(t, k) local mt = getmetatable(t) if type(k) == 'string' and not mt.__declared[k] and what() ~= "C" then error("variable "..k.." is not declared", 2)