Comparison

net/websocket/frames.lua @ 8442:3a390fa561bf

net.websocket.frames: Ignore Lua 5.3-only fields [luacheck]
author Kim Alvefur <zash@zash.se>
date Sat, 02 Dec 2017 02:12:06 +0100
parent 7259:d8300985f2bb
child 8728:41c959c5c84b
comparison
equal deleted inserted replaced
8441:e6e69be59233 8442:3a390fa561bf
19 19
20 local t_concat = table.concat; 20 local t_concat = table.concat;
21 local s_byte = string.byte; 21 local s_byte = string.byte;
22 local s_char= string.char; 22 local s_char= string.char;
23 local s_sub = string.sub; 23 local s_sub = string.sub;
24 local s_pack = string.pack; 24 local s_pack = string.pack; -- luacheck: ignore 143
25 local s_unpack = string.unpack; 25 local s_unpack = string.unpack; -- luacheck: ignore 143
26 26
27 if not s_pack and softreq"struct" then 27 if not s_pack and softreq"struct" then
28 s_pack = softreq"struct".pack; 28 s_pack = softreq"struct".pack;
29 s_unpack = softreq"struct".unpack; 29 s_unpack = softreq"struct".unpack;
30 end 30 end