forked from Mirror/wren
Unify Fiber.try() with the other methods to execute fibers.
This commit is contained in:
7
test/core/fiber/try_error.wren
Normal file
7
test/core/fiber/try_error.wren
Normal file
@ -0,0 +1,7 @@
|
||||
var fiber = Fiber.new {
|
||||
System.print("try")
|
||||
Fiber.abort("err")
|
||||
}
|
||||
|
||||
fiber.try() // expect: try
|
||||
fiber.try() // expect runtime error: Cannot try an aborted fiber.
|
||||
Reference in New Issue
Block a user