Add Fiber.try().

This commit is contained in:
Bob Nystrom
2014-10-15 06:36:42 -07:00
parent 24967ed4eb
commit f6cbb6ad75
13 changed files with 162 additions and 37 deletions
+10
View File
@@ -0,0 +1,10 @@
var fiber = new Fiber {
IO.print("before")
true.unknownMethod
IO.print("after")
}
IO.print(fiber.try)
// expect: before
// expect: Bool does not implement method 'unknownMethod'.
IO.print("after try") // expect: after try