projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1982f94
)
luci-0.10: merge r6988
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 17 Apr 2011 11:39:52 +0000
(11:39 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 17 Apr 2011 11:39:52 +0000
(11:39 +0000)
libs/json/luasrc/json.lua
patch
|
blob
|
history
diff --git
a/libs/json/luasrc/json.lua
b/libs/json/luasrc/json.lua
index 5b0928590f9f5a661cbd06e024baa0ed257ac629..9e38339be731ced5e5da1027b0a5a7e18ea9a5ef 100644
(file)
--- a/
libs/json/luasrc/json.lua
+++ b/
libs/json/luasrc/json.lua
@@
-82,7
+82,7
@@
function encode(obj, ...)
repeat
chnk, err = e()
out[#out+1] = chnk
- until chnk
+ until
not
chnk
return not err and table.concat(out) or nil
end
@@
-141,7
+141,7
@@
end
function Encoder.put(self, chunk)
if self.buffersize < 2 then
- corou
n
tine.yield(chunk)
+ coroutine.yield(chunk)
else
if #self.buffer + #chunk > self.buffersize then
local written = 0