aboutsummaryrefslogtreecommitdiff
path: root/compat53
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2023-09-13 19:40:22 -0300
committerGitHub <noreply@github.com>2023-09-13 19:40:22 -0300
commitb182b416169dc5286df737b7bf64dd6be1bb8eef (patch)
tree86925b0bff89c10889d339b9a4f44167c101f242 /compat53
parent8f8e4c6adb43e107f5902e784ef207dc3c8ca06b (diff)
downloadlua-compat-5.3-b182b416169dc5286df737b7bf64dd6be1bb8eef.tar.gz
lua-compat-5.3-b182b416169dc5286df737b7bf64dd6be1bb8eef.tar.bz2
lua-compat-5.3-b182b416169dc5286df737b7bf64dd6be1bb8eef.zip
Support getting io.popen results on file:close() on PUC-Rio Lua 5.1 (#53)
Diffstat (limited to 'compat53')
-rw-r--r--compat53/module.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/compat53/module.lua b/compat53/module.lua
index 30be6b5..225d8ca 100644
--- a/compat53/module.lua
+++ b/compat53/module.lua
@@ -67,6 +67,15 @@ if lua_version < "5.3" then
67 end 67 end
68 68
69 69
70 -- load io functions
71 local io_ok, iolib = pcall(require, "compat53.io")
72 if io_ok then
73 for k,v in pairs(iolib) do
74 M.io[k] = v
75 end
76 end
77
78
70 -- load string packing functions 79 -- load string packing functions
71 local str_ok, strlib = pcall(require, "compat53.string") 80 local str_ok, strlib = pcall(require, "compat53.string")
72 if str_ok then 81 if str_ok then