diff options
author | Li Jin <dragon-fly@qq.com> | 2022-02-15 09:55:18 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-02-15 09:55:18 +0800 |
commit | f4e2286da2b0212b0a7ac76821203bd398cfac5b (patch) | |
tree | 74e009d36b1cd67426ba729c8cb073f414f86cbf /spec/outputs/destructure.lua | |
parent | ddb0b9deb720368a425d00bce0c0352469b55911 (diff) | |
download | yuescript-f4e2286da2b0212b0a7ac76821203bd398cfac5b.tar.gz yuescript-f4e2286da2b0212b0a7ac76821203bd398cfac5b.tar.bz2 yuescript-f4e2286da2b0212b0a7ac76821203bd398cfac5b.zip |
fix a global variable check case.
Diffstat (limited to 'spec/outputs/destructure.lua')
-rw-r--r-- | spec/outputs/destructure.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/outputs/destructure.lua b/spec/outputs/destructure.lua index 9ca13c8..1862b85 100644 --- a/spec/outputs/destructure.lua +++ b/spec/outputs/destructure.lua | |||
@@ -298,8 +298,11 @@ do | |||
298 | end | 298 | end |
299 | local _obj_1 = getmetatable(tb).func | 299 | local _obj_1 = getmetatable(tb).func |
300 | if _obj_1 == nil then | 300 | if _obj_1 == nil then |
301 | if item ~= nil then | 301 | do |
302 | _obj_1 = item.defVal | 302 | local _obj_2 = item |
303 | if _obj_2 ~= nil then | ||
304 | _obj_1 = _obj_2.defVal | ||
305 | end | ||
303 | end | 306 | end |
304 | end | 307 | end |
305 | a.b(function() | 308 | a.b(function() |