diff --git a/src/core/vm.c b/src/core/vm.c index 84103e42..4f36c6c4 100644 --- a/src/core/vm.c +++ b/src/core/vm.c @@ -1065,11 +1065,7 @@ static JanetSignal run_vm(JanetFiber *fiber, Janet in) { janet_status_names[sub_status]); } fiber->child = f; - if (janet_checktype(stack[B], JANET_NIL)) { - vm_return((int) sub_status, f->last_value); - } else { - vm_return((int) sub_status, stack[B]); - } + vm_return((int) sub_status, stack[B]); } VM_OP(JOP_CANCEL) {