diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-29 17:38:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-29 17:38:12 +0100 |
commit | dd58923c6bcb026de7134d9874e69e0a2b01682d (patch) | |
tree | 96e5bb7145241ace4d7f217640cecb039d2b3d5d /src/evalfunc.c | |
parent | 57c339569e96725e24e79944bf99f70c50afb5b1 (diff) |
patch 8.2.0334: abort called when using test_void()v8.2.0334
Problem: Abort called when using test_void(). (Dominique Pelle)
Solution: Only give an error, don't abort.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 3fce946bf1..39e347ad20 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -1890,10 +1890,7 @@ f_empty(typval_T *argvars, typval_T *rettv) #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 *rettv) 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; } |