summaryrefslogtreecommitdiff
path: root/lualibs-util-tab.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-21 20:57:12 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-21 20:57:12 +0200
commitb95a6d8e0607155b2419e3731b8e4a050183a42c (patch)
treed3ffdc7f7e2610282e49f332c9b449096bff128a /lualibs-util-tab.lua
parent260c0a1c6f7e41618d08519c2e5db70409742b37 (diff)
downloadlualibs-b95a6d8e0607155b2419e3731b8e4a050183a42c.tar.gz
sync with Context as of 2013-05-21
Diffstat (limited to 'lualibs-util-tab.lua')
-rw-r--r--lualibs-util-tab.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualibs-util-tab.lua b/lualibs-util-tab.lua
index ecf36b1..a47c0cb 100644
--- a/lualibs-util-tab.lua
+++ b/lualibs-util-tab.lua
@@ -406,9 +406,9 @@ end
-- inspect(table.fastserialize { a = 1, b = { 4, { 5, 6 } }, c = { d = 7, e = 'f"g\nh' } })
-function table.load(filename)
+function table.load(filename,loader)
if filename then
- local t = io.loaddata(filename)
+ local t = (loader or io.loaddata)(filename)
if t and t ~= "" then
t = load(t)
if type(t) == "function" then