From a212b62603f6087bc5a34c4aea45f7cdb0643a8b 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, 22 Jun 2022 17:07:02 +0800 Subject: update --- script/vm/function.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/vm/function.lua') diff --git a/script/vm/function.lua b/script/vm/function.lua index 45f8c0df..2a169bd6 100644 --- a/script/vm/function.lua +++ b/script/vm/function.lua @@ -117,7 +117,7 @@ function vm.countReturnsOfFunction(func) max = dmax end end - return min, max + return min or 0, max or math.huge end if func.type == 'doc.type.function' then return vm.countList(func.returns) -- cgit v1.2.3