From d408b14e1542cfa7f1a3223a5aeeec55a91b0a99 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Thu, 28 Jul 2016 19:44:05 +0200 Subject: [PATCH] strict: __index() doesn't take a value Signed-off-by: Tobias Ulmer --- generic/strict.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5