mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.1556: Vim9: error for missing "return" after "throw"
Problem: Vim9: error for missing "return" after "throw". Solution: Set had_return flag for "throw". (closes #12262)
This commit is contained in:
@@ -3611,6 +3611,7 @@ compile_def_function(
|
||||
break;
|
||||
case CMD_throw:
|
||||
line = compile_throw(p, &cctx);
|
||||
cctx.ctx_had_return = TRUE;
|
||||
break;
|
||||
|
||||
case CMD_eval:
|
||||
|
Reference in New Issue
Block a user