Skip to content

Commit a641c26

Browse files
committed
add __close to setmetatable
fix #2335
1 parent a1af510 commit a641c26

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
## 3.7.1
44
* `FIX` [#2299]
5+
* `FIX` [#2335]
56

67
[#2299]: https://github.com/LuaLS/lua-language-server/issues/2299
8+
[#2335]: https://github.com/LuaLS/lua-language-server/issues/2335
79

810
## 3.7.0
911
`2023-8-24`

meta/template/basic.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ function setfenv(f, table) end
251251
---#if VERSION == JIT or VERSION == 5.2 then
252252
---@field __ipairs (fun(t):(fun(t,k,v):(integer|nil),any))|nil
253253
---#end
254+
---#if VERSION >= 5.4 then
255+
---@field __close (fun(t,errobj):any)|nil
256+
---#end
254257

255258
---#DES 'setmetatable'
256259
---@param table table

0 commit comments

Comments
 (0)