diff options
Diffstat (limited to 'server/src/vm/ipairs.lua')
-rw-r--r-- | server/src/vm/ipairs.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/vm/ipairs.lua b/server/src/vm/ipairs.lua index 58c7d827..cb8356da 100644 --- a/server/src/vm/ipairs.lua +++ b/server/src/vm/ipairs.lua @@ -1,8 +1,10 @@ local mt = require 'vm.manager' +local library = require 'vm.library' ---@param func emmyFunction function mt:callIpairs(func, values, source) local tbl = values[1] + func:setReturn(1, library.special['@ipairs']) func:setReturn(2, tbl) end @@ -23,6 +25,7 @@ end ---@param func emmyFunction function mt:callPairs(func, values, source) local tbl = values[1] + func:setReturn(1, library.special['next']) func:setReturn(2, tbl) end |