From 9fc3949841817921a14fa64ae3d657c936acdfc4 Mon Sep 17 00:00:00 2001 From: erw7 Date: Sun, 7 Jun 2020 01:31:23 +0900 Subject: shada: fix write E5004 error on exit Fix the problem of failing to write shada when the global variable contains Funcref or Partial. --- test/functional/shada/errors_spec.lua | 8 -------- 1 file changed, 8 deletions(-) (limited to 'test/functional/shada/errors_spec.lua') diff --git a/test/functional/shada/errors_spec.lua b/test/functional/shada/errors_spec.lua index 66c8c4ad2f..e8a01319d7 100644 --- a/test/functional/shada/errors_spec.lua +++ b/test/functional/shada/errors_spec.lua @@ -494,14 +494,6 @@ $ eq(0, exc_exec('wshada! ' .. shada_fname)) end) - it('errors when a funcref is stored in a variable', function() - nvim_command('let F = function("tr")') - nvim_command('set shada+=!') - eq('\nE5004: Error while dumping variable g:F, itself: attempt to dump function reference' - .. '\nE574: Failed to write variable F', - redir_exec('wshada')) - end) - it('errors when a self-referencing list is stored in a variable', function() nvim_command('let L = []') nvim_command('call add(L, L)') -- cgit