patch 8.2.0503: Vim9: some code is not tested
Problem: Vim9: some code is not tested.
Solution: Add tests. Fix uncovered problems.
diff --git a/src/vim9compile.c b/src/vim9compile.c
index dec7587..8366172 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -4972,6 +4972,7 @@
// Fill in the "end" label in jumps at the end of the blocks.
compile_fill_jump_to_end(&scope->se_u.se_try.ts_end_label, cctx);
+ isn->isn_arg.try.try_finally = instr->ga_len;
if (scope->se_u.se_try.ts_catch_label != 0)
{
// Previous catch without match jumps here
@@ -4979,7 +4980,6 @@
isn->isn_arg.jump.jump_where = instr->ga_len;
}
- isn->isn_arg.try.try_finally = instr->ga_len;
// TODO: set index in ts_finally_label jumps
return arg;
@@ -5350,13 +5350,7 @@
line = p;
continue;
}
- if (ea.cmdidx == CMD_let)
- {
- line = compile_assignment(ea.cmd, &ea, CMD_SIZE, &cctx);
- if (line == NULL)
- goto erret;
- continue;
- }
+ // CMD_let cannot happen, compile_assignment() above is used
iemsg("Command from find_ex_command() not handled");
goto erret;
}
@@ -5464,6 +5458,7 @@
}
if (line == NULL)
goto erret;
+ line = skipwhite(line);
if (cctx.ctx_type_stack.ga_len < 0)
{