From 0a59104baac417a8559947ee007b35a086c3ec73 Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Sun, 26 Apr 2015 19:14:17 +0200 Subject: Choose correct xpcall implementation in compat53 module. --- compat53/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat53/init.lua b/compat53/init.lua index e738091..31085be 100644 --- a/compat53/init.lua +++ b/compat53/init.lua @@ -271,7 +271,7 @@ if lua_version == "5.1" then return coroutine_create52(func) end - function _G.pcall(func, ...) + function M.pcall(func, ...) local current = coroutine_running() if not current then return pcall(func, ...) end return pcall_exec(current, pcall_coroutine(func), ...) @@ -290,7 +290,7 @@ if lua_version == "5.1" then return true, ... end - function _G.xpcall(f, msgh, ...) + function M.xpcall(f, msgh, ...) local current = coroutine_running() if not current then local args, n = { ... }, select('#', ...) -- cgit v1.2.3-55-g6feb