comparison src/vim9execute.c @ 19445:6e27e1ffa2a6 v8.2.0280

patch 8.2.0280: Vim9: throw in :def function not caught higher up Commit: https://github.com/vim/vim/commit/257cc5ee9593cd0653beca8b5945dc7fbf7f2d8d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 19 17:06:11 2020 +0100 patch 8.2.0280: Vim9: throw in :def function not caught higher up Problem: Vim9: throw in :def function not caught higher up. Solution: Set "need_rethrow".
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Feb 2020 17:15:03 +0100
parents bc880a130120
children f8408ba21982
comparison
equal deleted inserted replaced
19444:a94d27943c93 19445:6e27e1ffa2a6
480 goto failed; 480 goto failed;
481 tv = STACK_TV_BOT(0); 481 tv = STACK_TV_BOT(0);
482 tv->v_type = VAR_NUMBER; 482 tv->v_type = VAR_NUMBER;
483 tv->vval.v_number = 0; 483 tv->vval.v_number = 0;
484 ++ectx.ec_stack.ga_len; 484 ++ectx.ec_stack.ga_len;
485 need_rethrow = TRUE;
485 goto done; 486 goto done;
486 } 487 }
487 488
488 func_return(&ectx); 489 func_return(&ectx);
489 } 490 }