Fix wrenAbortFiber does not work inside of foreign class allocator

This commit is contained in:
Matus Novak
2019-09-17 19:43:53 +02:00
parent 740c365597
commit f91586a71a
3 changed files with 24 additions and 0 deletions

View File

@ -75,3 +75,13 @@ resources.clear()
System.gc()
System.print(ForeignClass.finalized) // expect: 3
// Class that aborts fiber
foreign class BadClass {
construct new() {}
}
error = Fiber.new {
BadClass.new()
}.try()
System.print(error) // expect: Something went wrong