Fix coroutine.wrap() error propogation.

This commit is contained in:
James Roseborough
2007-10-23 00:49:52 +00:00
parent 932960c846
commit 504020beda
2 changed files with 5 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ function printrunning()
print("running is not nil")
end
end
function foo (a)
print("foo", a)
return coroutine.yield(2*a)