summaryrefslogtreecommitdiff
path: root/server/src/vm
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-15 17:00:56 +0800
committersumneko <sumneko@hotmail.com>2019-04-15 17:00:56 +0800
commit0fe4e33123b03003689b96567d6aa13d5805d4d6 (patch)
tree2ac2a02ca9beda611e4878c1e45a641e4364c602 /server/src/vm
parent12373b0f4e0b44ed98c9eaa8ce0c6b8c3f3697b5 (diff)
downloadlua-language-server-0fe4e33123b03003689b96567d6aa13d5805d4d6.zip
以无参数的方式调用对象函数不检查多余参数
Diffstat (limited to 'server/src/vm')
-rw-r--r--server/src/vm/vm.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua
index 4308ea2c..cd24f1ad 100644
--- a/server/src/vm/vm.lua
+++ b/server/src/vm/vm.lua
@@ -499,6 +499,7 @@ function mt:getSimple(simple, max)
if object then
table.insert(values, 1, object)
table.insert(args, 1, simple[i-3])
+ source:set('has object', true)
end
object = nil
source:bindCall(args)