patch 8.2.0334: abort called when using test_void()
Problem: Abort called when using test_void(). (Dominique Pelle)
Solution: Only give an error, don't abort.
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 3fce946..39e347a 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -1890,10 +1890,7 @@
#endif
case VAR_UNKNOWN:
case VAR_VOID:
- // Let's not use internal_error() here, otherwise
- // empty(test_unknown()) with ABORT_ON_INTERNAL_ERROR defined makes
- // Vim abort.
- semsg(_(e_intern2), "f_empty(UNKNOWN)");
+ internal_error_no_abort("f_empty(UNKNOWN)");
n = TRUE;
break;
}
@@ -8278,10 +8275,7 @@
case VAR_BLOB: n = VAR_TYPE_BLOB; break;
case VAR_UNKNOWN:
case VAR_VOID:
- // Let's not use internal_error() here, otherwise
- // empty(test_unknown()) with ABORT_ON_INTERNAL_ERROR defined
- // makes Vim abort.
- semsg(_(e_intern2), "f_type(UNKNOWN)");
+ internal_error_no_abort("f_type(UNKNOWN)");
n = -1;
break;
}