Module:fun/xpcall: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

25 November 2025

  • curprev 17:1317:13, 25 November 2025Sware talk contribs 1,272 bytes +1,272 Created page with "local xpcall = xpcall -- In Lua 5.2+, xpcall() can handle arguments natively, so return the -- built-in version if the argument passed to the test function is returned. if select(2, xpcall(function(v) return v -- 1 if xpcall() passes arguments, or nil if not end, xpcall, 1)) == 1 then return xpcall end local table_pack_module = "Module:table/pack" local unpack = unpack or table.unpack -- Lua 5.2 compatibility local function pack(...) pack = require(table_pack_modu..."