From cfdffbc896a2999c594caccfdaa323df16e3950b Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 2 Mar 2022 23:20:48 +0800 Subject: improve table.wrap and unwrap --- xmake/core/base/table.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/core/base/table.lua') diff --git a/xmake/core/base/table.lua b/xmake/core/base/table.lua index 1c19f588d..73556c9fc 100644 --- a/xmake/core/base/table.lua +++ b/xmake/core/base/table.lua @@ -310,7 +310,7 @@ end -- unwrap object if be only one function table.unwrap(object) - if type(object) == "table" then + if type(object) == "table" and not getmetatable(object) then if #object == 1 then return object[1] end -- cgit v1.3.1