mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 06:08:41 +01:00
15 lines
427 B
Plaintext
15 lines
427 B
Plaintext
// 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
|
|
}
|
|
}
|