comparison src/testdir/test_vim9_disassemble.vim @ 23654:1974c5122506 v8.2.2369

patch 8.2.2369: Vim9: functions return true/false but can't be used as bool Commit: https://github.com/vim/vim/commit/3af15ab7888033fdfae0ae7085172aab794339a2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 17 16:16:23 2021 +0100 patch 8.2.2369: Vim9: functions return true/false but can't be used as bool Problem: Vim9: functions return true/false but can't be used as bool. Solution: Add ret_number_bool(). (closes https://github.com/vim/vim/issues/7693)
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 Jan 2021 16:30:05 +0100
parents 8c5374ec8a3d
children 0d56d4f107d8
comparison
equal deleted inserted replaced
23653:f6bbb1105de2 23654:1974c5122506
760 # GUI not running but can start later, call has() 760 # GUI not running but can start later, call has()
761 instr_expected = 'HasGuiRunning.*' .. 761 instr_expected = 'HasGuiRunning.*' ..
762 'if has("gui_running")\_s*' .. 762 'if has("gui_running")\_s*' ..
763 '\d PUSHS "gui_running"\_s*' .. 763 '\d PUSHS "gui_running"\_s*' ..
764 '\d BCALL has(argc 1)\_s*' .. 764 '\d BCALL has(argc 1)\_s*' ..
765 '\d COND2BOOL\_s*' .. 765 '\d 2BOOL (!!val)\_s*' ..
766 '\d JUMP_IF_FALSE -> \d\_s*' .. 766 '\d JUMP_IF_FALSE -> \d\_s*' ..
767 ' echo "yes"\_s*' .. 767 ' echo "yes"\_s*' ..
768 '\d PUSHS "yes"\_s*' .. 768 '\d PUSHS "yes"\_s*' ..
769 '\d ECHO 1\_s*' .. 769 '\d ECHO 1\_s*' ..
770 'else\_s*' .. 770 'else\_s*' ..