We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b5fe7a commit 9a9edb9Copy full SHA for 9a9edb9
doc/us/index.html
@@ -131,6 +131,12 @@ <h2>Latest Sources and Bug Tracker</h2>
131
132
<h2>History</h2>
133
134
+<p><strong>WSAPI</strong> [unreleased]</p>
135
+
136
+<ul>
137
+ <li>Refactor coxpcall dependency (Francois Perrad)</li>
138
+</ul>
139
140
<p><strong>WSAPI 1.6.1</strong> [21/Mar/2014]</p>
141
142
<ul>
src/wsapi/common.lua
@@ -15,15 +15,15 @@ local debug = require "debug"
15
local wsapi = require "wsapi"
16
local lfs = require "lfs"
17
18
-local tostring, tonumber, pairs, ipairs, error, type, pcall, xpcall, setmetatable, dofile, rawget, rawset, assert, loadfile =
19
- tostring, tonumber, pairs, ipairs, error, type, pcall, xpcall, setmetatable, dofile, rawget, rawset, assert, loadfile
20
-
21
-if _VERSION < "Lua 5.2" then
+if _VERSION=="Lua 5.1" and not jit then -- obsolete: only for Lua 5.1 compatibility
22
local coxpcall = require "coxpcall"
23
pcall = coxpcall.pcall
24
xpcall = coxpcall.xpcall
25
end
26
+local tostring, tonumber, pairs, ipairs, error, type, pcall, xpcall, setmetatable, dofile, rawget, rawset, assert, loadfile =
+ tostring, tonumber, pairs, ipairs, error, type, pcall, xpcall, setmetatable, dofile, rawget, rawset, assert, loadfile
27
local package = package
28
29
local _, ringer = pcall(require, "wsapi.ringer")
src/wsapi/ringer.lua
@@ -24,9 +24,6 @@ local init = [==[
_, package.cpath = remotedostring("return package.cpath")
local common = require"wsapi.common"
- local coxpcall = require "coxpcall"
- pcall = coxpcall.pcall
- xpcall = coxpcall.xpcall
30
31
local wsapi_error = {
32
write = function (self, err)
src/wsapi/xavante.lua
@@ -6,11 +6,6 @@
6
--
7
-----------------------------------------------------------------------------
8
9
-local coxpcall = require "coxpcall"
10
11
-pcall = coxpcall.pcall
12
-xpcall = coxpcall.xpcall
13
14
local _M = {}
0 commit comments