Mercurial > vim
comparison src/sign.c @ 25252:acda780ffc3e v8.2.3162
patch 8.2.3162: Vim9: argument types are not checked at compile time
Commit: https://github.com/vim/vim/commit/1a71d31bf34b0b2b08517903826004ec6fd440e5
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Jul 15 12:49:58 2021 +0200
patch 8.2.3162: Vim9: argument types are not checked at compile time
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8560)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 15 Jul 2021 13:00:06 +0200 |
parents | 2794a2666769 |
children | 4d3c68196d05 |
comparison
equal
deleted
inserted
replaced
25251:6024f64e0d2b | 25252:acda780ffc3e |
---|---|
2272 | 2272 |
2273 if (rettv_list_alloc_id(rettv, aid_sign_getdefined) != OK) | 2273 if (rettv_list_alloc_id(rettv, aid_sign_getdefined) != OK) |
2274 return; | 2274 return; |
2275 | 2275 |
2276 if (argvars[0].v_type != VAR_UNKNOWN) | 2276 if (argvars[0].v_type != VAR_UNKNOWN) |
2277 { | |
2278 if (in_vim9script() && check_for_string_arg(argvars, 0) == FAIL) | |
2279 return; | |
2277 name = tv_get_string(&argvars[0]); | 2280 name = tv_get_string(&argvars[0]); |
2281 } | |
2278 | 2282 |
2279 sign_getlist(name, rettv->vval.v_list); | 2283 sign_getlist(name, rettv->vval.v_list); |
2280 } | 2284 } |
2281 | 2285 |
2282 /* | 2286 /* |