summaryrefslogtreecommitdiff
path: root/server/src/vm/value.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/vm/value.lua')
-rw-r--r--server/src/vm/value.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua
index 6cfaec4b..b43530d0 100644
--- a/server/src/vm/value.lua
+++ b/server/src/vm/value.lua
@@ -13,6 +13,7 @@ local TypeLevel = {
['number'] = 0.6,
}
+---@class value
local mt = {}
mt.__index = mt
mt.type = 'value'
@@ -595,6 +596,10 @@ function mt:setEmmy(emmy)
---@type EmmyTableType
local emmyTableType = emmy
emmyTableType:setValue(self)
+ elseif emmy.type == 'emmy.functionType' then
+ ---@type EmmyFunctionType
+ local emmyFuncType = emmy
+ emmyFuncType:setValue(self)
else
return
end