comparison src/vim9execute.c @ 24812:8fdf839af1f4 v8.2.2944

patch 8.2.2944: Vim9: no error when using job or channel as a string Commit: https://github.com/vim/vim/commit/1328bde9d406aa1292e92673fa8a026889424e79 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 5 20:51:38 2021 +0200 patch 8.2.2944: Vim9: no error when using job or channel as a string Problem: Vim9: no error when using job or channel as a string. Solution: Be more strict about conversion to string. (closes https://github.com/vim/vim/issues/8312)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Jun 2021 21:00:03 +0200
parents 30095f94d081
children 1bed37e82c2e
comparison
equal deleted inserted replaced
24811:e89d42919a21 24812:8fdf839af1f4
4829 case ISN_PUSHJOB: 4829 case ISN_PUSHJOB:
4830 #ifdef FEAT_JOB_CHANNEL 4830 #ifdef FEAT_JOB_CHANNEL
4831 { 4831 {
4832 typval_T tv; 4832 typval_T tv;
4833 char_u *name; 4833 char_u *name;
4834 char_u buf[NUMBUFLEN];
4834 4835
4835 tv.v_type = VAR_JOB; 4836 tv.v_type = VAR_JOB;
4836 tv.vval.v_job = iptr->isn_arg.job; 4837 tv.vval.v_job = iptr->isn_arg.job;
4837 name = tv_get_string(&tv); 4838 name = job_to_string_buf(&tv, buf);
4838 smsg("%s%4d PUSHJOB \"%s\"", pfx, current, name); 4839 smsg("%s%4d PUSHJOB \"%s\"", pfx, current, name);
4839 } 4840 }
4840 #endif 4841 #endif
4841 break; 4842 break;
4842 case ISN_PUSHEXC: 4843 case ISN_PUSHEXC: