]> git.e2factory.org Git - e2factory.git/commitdiff
strict: __index() doesn't take a value
authorTobias Ulmer <tu@emlix.com>
Thu, 28 Jul 2016 17:44:05 +0000 (19:44 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/strict.lua

index 27834de13afe2372a269561703437df9afff9290..8324d85f5b8e78fd69e9d518385dbf7f5913a4b4 100644 (file)
@@ -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)