summaryrefslogtreecommitdiff
path: root/server/src/vm/function.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/vm/function.lua')
-rw-r--r--server/src/vm/function.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/src/vm/function.lua b/server/src/vm/function.lua
index dff5952d..9b0811bf 100644
--- a/server/src/vm/function.lua
+++ b/server/src/vm/function.lua
@@ -381,7 +381,12 @@ function mt:markGlobal()
end
function mt:setEmmyParams(params)
- self._emmyParams = params
+ if params then
+ self._emmyParams = params
+ for _, param in ipairs(params) do
+ param:getSource()[1]:set('emmy function', self)
+ end
+ end
end
local function create(source)