CBL-Mariner/SPECS-EXTENDED/lua-json/luajson-lua-5.2.patch

25 lines
1.3 KiB
Diff

diff -up luajson-7a86bc22066858afeb23845a191a6ab680b46233/lua/json/decode/state.lua.lua-52 luajson-7a86bc22066858afeb23845a191a6ab680b46233/lua/json/decode/state.lua
--- luajson-7a86bc22066858afeb23845a191a6ab680b46233/lua/json/decode/state.lua.lua-52 2013-05-10 16:32:47.277329679 -0400
+++ luajson-7a86bc22066858afeb23845a191a6ab680b46233/lua/json/decode/state.lua 2013-05-10 16:33:19.301328534 -0400
@@ -8,7 +8,7 @@ local jsonutil = require("json.util")
local assert = assert
local type = type
local next = next
-local unpack = unpack
+local unpack = table.unpack
local _ENV = nil
diff -up luajson-7a86bc22066858afeb23845a191a6ab680b46233/tests/lunit-encoderfunc.lua.lua-52 luajson-7a86bc22066858afeb23845a191a6ab680b46233/tests/lunit-encoderfunc.lua
--- luajson-7a86bc22066858afeb23845a191a6ab680b46233/tests/lunit-encoderfunc.lua.lua-52 2013-05-10 16:31:50.764331699 -0400
+++ luajson-7a86bc22066858afeb23845a191a6ab680b46233/tests/lunit-encoderfunc.lua 2013-05-10 16:32:00.788331341 -0400
@@ -8,7 +8,7 @@ local setmetatable = setmetatable
module("lunit-encoderfunc", lunit.testcase, package.seeall)
local function build_call(name, parameters)
- return json.util.buildCall(name, unpack(parameters, parameters.n))
+ return json.util.buildCall(name, table.unpack(parameters, parameters.n))
end
function test_param_counts()