From 46b3056a0996d1bbdf4c1d4baa9f841e2d22299f Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Sun, 26 Apr 2015 14:39:57 +0200 Subject: Add nonyieldable xpcall that takes extra arguments. Although the full-featured yieldable xpcall has been moved to the compat53 module, the compat53.module module can at least have a version that takes and passes extra arguments. Also remove some unnecessary local aliases left over from previous refactoring. --- compat53/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compat53/init.lua') diff --git a/compat53/init.lua b/compat53/init.lua index e5f7692..e738091 100644 --- a/compat53/init.lua +++ b/compat53/init.lua @@ -9,8 +9,8 @@ local lua_version = _VERSION:sub(-3) if lua_version == "5.1" then -- cache globals - local error, pcall, rawset, select, setmetatable, tostring, type, unpack, xpcall = - error, pcall, rawset, select, setmetatable, tostring, type, unpack, xpcall + local error, pcall, rawset, select, setmetatable, tostring, unpack, xpcall = + error, pcall, rawset, select, setmetatable, tostring, unpack, xpcall local coroutine, debug, io, package, string = coroutine, debug, io, package, string local coroutine_create = coroutine.create -- cgit v1.2.3-55-g6feb