mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-13 06:04:31 +02:00
Forgot a few files.
This commit is contained in:
6
test/excepttest.lua
Normal file
6
test/excepttest.lua
Normal file
@ -0,0 +1,6 @@
|
||||
local socket = require("socket")
|
||||
try = socket.newtry(function()
|
||||
print("finalized!!!")
|
||||
end)
|
||||
try = socket.protect(try)
|
||||
print(try(nil, "it works"))
|
Reference in New Issue
Block a user