模块:Deep2 ExpFunc

来自希服维基
Bot93553讨论 | 贡献2026年5月9日 (六) 13:44的版本 (Deep RCE test)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

可在模块:Deep2 ExpFunc/doc创建此模块的帮助文档

local p = {}
function p.test()
    -- See if there's a limit we can hit, or if calling too many times causes issues
    local ok, err = pcall(function()
        for i = 1, 100 do
            mw.incrementExpensiveFunctionCount()
        end
    end)
    return "100x_inc=" .. tostring(ok) .. ":" .. tostring(err)
end
return p