summaryrefslogtreecommitdiff
path: root/server/src/vm/emmy.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/vm/emmy.lua')
-rw-r--r--server/src/vm/emmy.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/vm/emmy.lua b/server/src/vm/emmy.lua
index b193a7de..9342a851 100644
--- a/server/src/vm/emmy.lua
+++ b/server/src/vm/emmy.lua
@@ -197,7 +197,8 @@ function mt:doEmmyReturn(action)
local emmyMgr = self.emmyMgr
self:instantSource(action)
local type = action[1] and (self:getGenericByType(action[1]) or self:buildEmmyAnyType(action[1]))
- local rtn = emmyMgr:addReturn(action, type)
+ local name = action[2]
+ local rtn = emmyMgr:addReturn(action, type, name)
action:set('emmy.return', rtn)
self:addEmmyReturn(rtn)
if self.lsp then