diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2019-01-17 15:58:05 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-01-17 23:06:04 +0100 |
commit | a8a38f346548f507f06ff07d790d87913007523f (patch) | |
tree | 60f8d3afaa6769c542e5e5d4289243fc0718e76b /test/unit/api/helpers.lua | |
parent | 279043d62526674118e4ddb531f8cf7195060928 (diff) | |
download | rneovim-a8a38f346548f507f06ff07d790d87913007523f.tar.gz rneovim-a8a38f346548f507f06ff07d790d87913007523f.tar.bz2 rneovim-a8a38f346548f507f06ff07d790d87913007523f.zip |
test: Lua 5.2/5.3 compat
close #9515
ref #9280
Diffstat (limited to 'test/unit/api/helpers.lua')
-rw-r--r-- | test/unit/api/helpers.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/api/helpers.lua b/test/unit/api/helpers.lua index 4fb1cee4b3..3d306d2b1b 100644 --- a/test/unit/api/helpers.lua +++ b/test/unit/api/helpers.lua @@ -114,8 +114,7 @@ local lua2obj_type_tab = { api.xmalloc(len * ffi.sizeof('KeyValuePair'))), }}) for i = 1, len do - local table_unpack = table.unpack or unpack -- luacheck: compat - local key, val = table_unpack(kvs[i]) + local key, val = unpack(kvs[i]) dct.data.dictionary.items[i - 1] = ffi.new( 'KeyValuePair', {key=ffi.gc(lua2obj(key), nil).data.string, value=ffi.gc(lua2obj(val), nil)}) |