channel_T *channel;
jobopt_T opt;
+ if (check_restricted() || check_secure())
+ return;
+
if (in_vim9script()
&& (check_for_chan_or_job_arg(argvars, 0) == FAIL
|| check_for_dict_arg(argvars, 1) == FAIL))
int need_redraw = FALSE;
int need_reposition = FALSE;
+ if (check_secure())
+ return;
+
if (in_vim9script()
&& (check_for_number_arg(argvars, 0) == FAIL
|| check_for_dict_arg(argvars, 1) == FAIL))
call StopVimInTerminal(buf)
endfunc
-func Test_popup_create_sandbox()
+func Test_popup_sandbox()
call assert_fails('sandbox call popup_create("hello", {})', 'E48:')
+ call assert_fails('sandbox call popup_setoptions(1, {})', 'E48:')
endfunc
" vim: shiftwidth=2 sts=2 expandtab
if has('channel')
call assert_fails("call ch_logfile('Xlog')", 'E145:')
call assert_fails("call ch_open('localhost:8765')", 'E145:')
+ call assert_fails("call ch_setoptions('localhost:8765', {})", 'E145:')
endif
if has('job')
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 608,
/**/
607,
/**/