You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code should raise an error in the main thread, propagating one thrown by the coroutine body:
print(coroutine.wrap(function()
error("test")
end)())
print("should be unreachable")
In native Lua and in the BIOS environment none of the print calls are reachable. In OpenOS, however, the wrapper intercepts the error and returns the error object; the code above thus prints the following:
/home/test.lua:2: test
should be unreachable
OC 1.8.3. I think this may be a regression in one of the newer OC versions — I certainly remember coroutine.wrap working as expected a while ago (1.7-ish).
The text was updated successfully, but these errors were encountered:
The following code should raise an error in the main thread, propagating one thrown by the coroutine body:
In native Lua and in the BIOS environment none of the print calls are reachable. In OpenOS, however, the wrapper intercepts the error and returns the error object; the code above thus prints the following:
OC 1.8.3. I think this may be a regression in one of the newer OC versions — I certainly remember
coroutine.wrap
working as expected a while ago (1.7-ish).The text was updated successfully, but these errors were encountered: