comparison src/vim9compile.c @ 19572:6b6e97d0185e v8.2.0343

patch 8.2.0343: Vim9: using wrong instruction, limited test coverage Commit: https://github.com/vim/vim/commit/f51cb4e08ef904d137c27fe7cddb4702d8dcb2a2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 1 17:55:14 2020 +0100 patch 8.2.0343: Vim9: using wrong instruction, limited test coverage Problem: Vim9: using wrong instruction, limited test coverage. Solution: Use ISN_PUSHJOB. Add a few more tests.
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Mar 2020 18:00:04 +0100
parents ec1eeb1b69e2
children aae19dd172c0
comparison
equal deleted inserted replaced
19571:a1ff82a1aa9f 19572:6b6e97d0185e
664 static int 664 static int
665 generate_PUSHJOB(cctx_T *cctx, job_T *job) 665 generate_PUSHJOB(cctx_T *cctx, job_T *job)
666 { 666 {
667 isn_T *isn; 667 isn_T *isn;
668 668
669 if ((isn = generate_instr_type(cctx, ISN_PUSHCHANNEL, &t_channel)) == NULL) 669 if ((isn = generate_instr_type(cctx, ISN_PUSHJOB, &t_channel)) == NULL)
670 return FAIL; 670 return FAIL;
671 isn->isn_arg.job = job; 671 isn->isn_arg.job = job;
672 672
673 return OK; 673 return OK;
674 } 674 }