1
0
forked from Mirror/wren

Revamp how runtime errors and fiber switching is handled.

- Add Fiber.transferError(_).
- Primitives place runtime errors directly in the fiber instead of on
  the stack.
- Primitives that change fibers set it directly in the VM.
- Allow a fiber's error to be any object (except null).
This commit is contained in:
Bob Nystrom
2015-09-29 22:57:03 -07:00
parent 79354f5a97
commit b05a74da19
14 changed files with 285 additions and 269 deletions

View File

@ -134,3 +134,7 @@ run. This returns `false` if the fiber is currently running or has yielded.
### **transfer**(value)
**TODO**
### **transferError**(error)
**TODO**