comparison src/vim9execute.c @ 19872:8a7bede7b138 v8.2.0492

patch 8.2.0492: Vim9: some error messages not tested Commit: https://github.com/vim/vim/commit/a8c1770469504ae66c80bbdb03b6b31641215848 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 1 21:17:24 2020 +0200 patch 8.2.0492: Vim9: some error messages not tested Problem: Vim9: some error messages not tested. Solution: Add more tests. Remove dead code. Fix uncovered bugs.
author Bram Moolenaar <Bram@vim.org>
date Wed, 01 Apr 2020 21:30:03 +0200
parents 846fbbacce3a
children f92435f0f449
comparison
equal deleted inserted replaced
19871:7f8a267721e4 19872:8a7bede7b138
682 case ISN_LOADOPT: 682 case ISN_LOADOPT:
683 { 683 {
684 typval_T optval; 684 typval_T optval;
685 char_u *name = iptr->isn_arg.string; 685 char_u *name = iptr->isn_arg.string;
686 686
687 // This is not expected to fail, name is checked during
688 // compilation: don't set SOURCING_LNUM.
687 if (ga_grow(&ectx.ec_stack, 1) == FAIL) 689 if (ga_grow(&ectx.ec_stack, 1) == FAIL)
688 goto failed; 690 goto failed;
689 if (get_option_tv(&name, &optval, TRUE) == FAIL) 691 if (get_option_tv(&name, &optval, TRUE) == FAIL)
690 goto failed; 692 goto failed;
691 *STACK_TV_BOT(0) = optval; 693 *STACK_TV_BOT(0) = optval;