commit | cf2610c82b64b1785af0804916789295cae45e93 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun May 14 19:59:59 2023 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun May 14 19:59:59 2023 +0100 |
tree | 8e233fcfa61259b8ce883530fe8c9c7766a04ab8 | |
parent | b7398fe41c9e1e731d058105a34158871ee83e3f [diff] [blame] |
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)
diff --git a/src/vim9compile.c b/src/vim9compile.c index 477f5ee..b894c6f 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -3611,6 +3611,7 @@ break; case CMD_throw: line = compile_throw(p, &cctx); + cctx.ctx_had_return = TRUE; break; case CMD_eval: