aboutsummaryrefslogtreecommitdiff
path: root/testes/coroutine.lua
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-08-20 13:42:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-08-20 13:42:26 -0300
commitbe78aeae4c429d7d68af3a3e1b0cf8e52fcff160 (patch)
treee81d25014e238f589997f109ba10a875c3a875dc /testes/coroutine.lua
parent5bc47fe83087e0686f4639d031801837846e4c65 (diff)
downloadlua-be78aeae4c429d7d68af3a3e1b0cf8e52fcff160.tar.gz
lua-be78aeae4c429d7d68af3a3e1b0cf8e52fcff160.tar.bz2
lua-be78aeae4c429d7d68af3a3e1b0cf8e52fcff160.zip
Default for warnings changed to "off"
Warnings are mostly a tool to help developers (e.g., by showing hidden error messages); regular users usually don't need to see them.
Diffstat (limited to 'testes/coroutine.lua')
-rw-r--r--testes/coroutine.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/testes/coroutine.lua b/testes/coroutine.lua
index 4fc23261..79bbf2ea 100644
--- a/testes/coroutine.lua
+++ b/testes/coroutine.lua
@@ -163,6 +163,7 @@ do
163 assert(not X and coroutine.status(co) == "dead") 163 assert(not X and coroutine.status(co) == "dead")
164 164
165 -- error closing a coroutine 165 -- error closing a coroutine
166 warn("@on")
166 local x = 0 167 local x = 0
167 co = coroutine.create(function() 168 co = coroutine.create(function()
168 local y <close> = func2close(function (self,err) 169 local y <close> = func2close(function (self,err)