[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luasocket testclnt.lua fails assertion
- From: Diego Nehab <diego@...>
- Date: Tue, 29 May 2007 15:46:42 -0400 (EDT)
Hi,
The code in question is:
function test_methods(sock, methods)
- for _, v in methods do
+ for _, v in pairs(methods)
if type(sock[v]) ~= "function" then
fail(sock.class .. " method '" .. v .. "' not registered")
end
end
pass(sock.class .. " methods are ok")
end
This is something that stopped working on Lua 5.1. Used to
work on Lua 5.0.
Regards,
Diego.