diff src/evalfunc.c @ 19554:b38d73f36467 v8.2.0334

patch 8.2.0334: abort called when using test_void() Commit: https://github.com/vim/vim/commit/dd58923c6bcb026de7134d9874e69e0a2b01682d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 29 17:38:12 2020 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 29 Feb 2020 17:45:04 +0100
parents 9a9ca0e622c8
children 06f29b6ea04a
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -1890,10 +1890,7 @@ f_empty(typval_T *argvars, typval_T *ret
 #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 @@ f_type(typval_T *argvars, typval_T *rett
 	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;
     }