diff --git a/CHANGELOG.md b/CHANGELOG.md index d550b1c1..2f236270 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog All notable changes to this project will be documented in this file. +## Unreleased - ??? +- Fix quasiquote bug in compiler +- Disallow use of `cancel` and `resume` on fibers scheduled or created with `ev/go`, as well as the root + fiber. + ## 1.20.0 - 2022-1-27 - Add `:missing-symbol` hook to `compile` that will act as a catch-all macro for undefined symbols. - Add `:redef` dynamic binding that will allow users to redefine top-level bindings with late binding. This diff --git a/src/core/vm.c b/src/core/vm.c index 3248aa31..ff8eb01d 100644 --- a/src/core/vm.c +++ b/src/core/vm.c @@ -1338,8 +1338,7 @@ static JanetSignal janet_check_can_resume(JanetFiber *fiber, Janet *out, int is_ *out = janet_cstringv("C stack recursed too deeply"); return JANET_SIGNAL_ERROR; } - /* If a "task" fiber is trying to be used as a normal fiber, detect that and fix the reference - * count. See bug #920. */ + /* If a "task" fiber is trying to be used as a normal fiber, detect that. See bug #920. */ if (janet_vm.stackn > 0 && (fiber->gc.flags & JANET_FIBER_FLAG_ROOT)) { *out = janet_cstringv(is_cancel ? "cannot cancel root fiber"