aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtin/common/strict.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/common/strict.lua b/builtin/common/strict.lua
index 6a385fa80..9bfa8d7a2 100644
--- a/builtin/common/strict.lua
+++ b/builtin/common/strict.lua
@@ -14,6 +14,7 @@ local declared = {}
local warned = {}
function meta:__newindex(name, value)
+ rawset(self, name, value)
if declared[name] then
return
end
@@ -25,7 +26,6 @@ function meta:__newindex(name, value)
:format(name, desc))
warned[warn_key] = true
end
- rawset(self, name, value)
declared[name] = true
end