aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/compat.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/compat.lua b/core/compat.lua
index c5248204..71db0c03 100644
--- a/core/compat.lua
+++ b/core/compat.lua
@@ -27,7 +27,7 @@ function xpcall(f, error, ...)
end
-- In Lua 5.1, `module` exists.
-module = nil
+_G.module = nil -- use _G prefix so LuaDoc does not get confused
-- In Lua 5.1, `package.loaders` is `package.searchers`
package.searchers = package.loaders