libwren-sys 0.1.0

FFI bindings for the wren embedded programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Regression test.
//
// If you invoked some code with wrenCall() and that code aborted the current
// fiber, it did not reset the API stack. If you tried to immediately reuse the
// API stack by calling wrenCall(), it would be in a broken state.
class Test {
  static abortFiber() {
    Fiber.abort("Abort!") // expect handled runtime error: Abort!
  }

  static afterAbort(a, b) {
    System.print(a + b) // expect: 3
  }
}