From 7f3aa8ed3eba0f07a4bd258407f3eaa038f2ce6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 5 Dec 2018 16:36:16 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/compile.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/src/matcher/compile.lua b/server/src/matcher/compile.lua index c9b847e5..eb85bc61 100644 --- a/server/src/matcher/compile.lua +++ b/server/src/matcher/compile.lua @@ -430,7 +430,9 @@ function mt:searchFunction(func) end function mt:searchLocalFunction(func) - self:markLocal(func.name) + if func.name then + self:markLocal(func.name) + end self.env:push() self:forList(func.arg, function (arg) self:markLocal(arg) -- cgit v1.2.3