To: vim_dev@googlegroups.com Subject: Patch 8.2.0501 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0501 Problem: Vim9: script test fails when channel feature is missing. Solution: Add a has() condition. Files: src/testdir/test_vim9_script.vim *** ../vim-8.2.0500/src/testdir/test_vim9_script.vim 2020-04-01 23:05:15.275595403 +0200 --- src/testdir/test_vim9_script.vim 2020-04-02 19:10:29.111081246 +0200 *************** *** 164,174 **** let thedict: dict assert_equal({}, thedict) ! let thejob: job ! assert_equal(test_null_job(), thejob) ! let thechannel: channel ! assert_equal(test_null_channel(), thechannel) enddef func Test_assignment_failure() --- 164,176 ---- let thedict: dict assert_equal({}, thedict) ! if has('channel') ! let thejob: job ! assert_equal(test_null_job(), thejob) ! let thechannel: channel ! assert_equal(test_null_channel(), thechannel) ! endif enddef func Test_assignment_failure() *** ../vim-8.2.0500/src/version.c 2020-04-02 18:50:42.431773081 +0200 --- src/version.c 2020-04-02 19:11:30.494837125 +0200 *************** *** 740,741 **** --- 740,743 ---- { /* Add new patch number below this line */ + /**/ + 501, /**/ -- BEDEVERE: Oooooh! LAUNCELOT: No "Aaaaarrrrrrggghhh ... " at the back of the throat. BEDEVERE: No! "Oooooh!" in surprise and alarm! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///