diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-24 23:00:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-24 23:00:18 +0200 |
commit | 822ba24743af9ee1b5e7f656a7a61a38f3638bca (patch) | |
tree | 7fb853a5f43c2d2682b4c9fd55a0e257e95d2446 /src/testdir/test_vim9_disassemble.vim | |
parent | f7271e831614d15d173c7f562cc26f48c2554ce9 (diff) | |
download | vim-git-822ba24743af9ee1b5e7f656a7a61a38f3638bca.tar.gz |
patch 8.2.0818: Vim9: using a discovery phase doesn't work wellv8.2.0818
Problem: Vim9: using a discovery phase doesn't work well.
Solution: Remove the discovery phase, instead compile a function only when
it is used. Add :defcompile to compile def functions earlier.
Diffstat (limited to 'src/testdir/test_vim9_disassemble.vim')
-rw-r--r-- | src/testdir/test_vim9_disassemble.vim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testdir/test_vim9_disassemble.vim b/src/testdir/test_vim9_disassemble.vim index 74804b4cf..e1042588c 100644 --- a/src/testdir/test_vim9_disassemble.vim +++ b/src/testdir/test_vim9_disassemble.vim @@ -423,8 +423,7 @@ def Test_disassemble_update_instr() assert_match('FuncWithForwardCall\_s*' .. 'return g:DefinedLater("yes")\_s*' .. '\d PUSHS "yes"\_s*' .. - '\d UCALL g:DefinedLater(argc 1)\_s*' .. - '\d CHECKTYPE string stack\[-1]\_s*' .. + '\d DCALL DefinedLater(argc 1)\_s*' .. '\d RETURN', res) @@ -436,7 +435,6 @@ def Test_disassemble_update_instr() 'return g:DefinedLater("yes")\_s*' .. '\d PUSHS "yes"\_s*' .. '\d DCALL DefinedLater(argc 1)\_s*' .. - '\d CHECKTYPE string stack\[-1]\_s*' .. '\d RETURN', res) enddef @@ -604,7 +602,7 @@ def Test_disassemble_lambda() '\d PUSHS "x"\_s*' .. '\d LOAD $0\_s*' .. '\d PCALL (argc 1)\_s*' .. - '\d CHECKTYPE string stack\[-1]', + '\d RETURN', instr) enddef |