diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-16 18:27:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-16 18:27:33 +0800 |
commit | fd68cd1c0aa7b3074ed8b316a354bf17111cf0b3 (patch) | |
tree | 3584806222b2e137fb341ed32b4764981f1a8aeb /test/functional/lua/luaeval_spec.lua | |
parent | b0978fca6b82a061b345df43745c3ab860e02b58 (diff) | |
download | rneovim-fd68cd1c0aa7b3074ed8b316a354bf17111cf0b3.tar.gz rneovim-fd68cd1c0aa7b3074ed8b316a354bf17111cf0b3.tar.bz2 rneovim-fd68cd1c0aa7b3074ed8b316a354bf17111cf0b3.zip |
vim-patch:8.2.2857: Vim9: exception in ISN_INSTR caught at wrong level (#23131)
Problem: Vim9: exception in ISN_INSTR caught at wrong level.
Solution: Set the starting trylevel in exec_instructions(). (closes vim/vim#8214)
https://github.com/vim/vim/commit/ff65288aa89dcd50760ad942d58baff70c6e93e6
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
-rw-r--r-- | test/functional/lua/luaeval_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/lua/luaeval_spec.lua b/test/functional/lua/luaeval_spec.lua index 32bb894be1..613008b5e1 100644 --- a/test/functional/lua/luaeval_spec.lua +++ b/test/functional/lua/luaeval_spec.lua @@ -539,11 +539,11 @@ describe('v:lua', function() end) it('throw errors for invalid use', function() - eq('Vim(let):E15: Invalid expression: v:lua.func', pcall_err(command, "let g:Func = v:lua.func")) - eq('Vim(let):E15: Invalid expression: v:lua', pcall_err(command, "let g:Func = v:lua")) - eq("Vim(let):E15: Invalid expression: v:['lua']", pcall_err(command, "let g:Func = v:['lua']")) + eq([[Vim(let):E15: Invalid expression: "v:lua.func"]], pcall_err(command, "let g:Func = v:lua.func")) + eq([[Vim(let):E15: Invalid expression: "v:lua"]], pcall_err(command, "let g:Func = v:lua")) + eq([[Vim(let):E15: Invalid expression: "v:['lua']"]], pcall_err(command, "let g:Func = v:['lua']")) - eq("Vim:E15: Invalid expression: v:['lua'].foo()", pcall_err(eval, "v:['lua'].foo()")) + eq([[Vim:E15: Invalid expression: "v:['lua'].foo()"]], pcall_err(eval, "v:['lua'].foo()")) eq("Vim(call):E461: Illegal variable name: v:['lua']", pcall_err(command, "call v:['lua'].baar()")) eq("Vim:E1085: Not a callable type: v:lua", pcall_err(eval, "v:lua()")) @@ -554,6 +554,6 @@ describe('v:lua', function() eq("Vim:E274: No white space allowed before parenthesis", pcall_err(eval, "'bad'->v:lua.func ()")) eq("Vim:E107: Missing parentheses: v:lua", pcall_err(eval, "'bad'->v:lua")) eq("Vim:E1085: Not a callable type: v:lua", pcall_err(eval, "'bad'->v:lua()")) - eq("Vim:E15: Invalid expression: v:lua.()", pcall_err(eval, "'bad'->v:lua.()")) + eq([[Vim:E15: Invalid expression: "v:lua.()"]], pcall_err(eval, "'bad'->v:lua.()")) end) end) |