mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 12:28:21 +01:00
Fix error in ltn12 under Lua 5.3
This commit is contained in:
parent
83880dbed7
commit
a7f21e8ec4
@ -9,6 +9,7 @@
|
|||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
local string = require("string")
|
local string = require("string")
|
||||||
local table = require("table")
|
local table = require("table")
|
||||||
|
local unpack = unpack or table.unpack
|
||||||
local base = _G
|
local base = _G
|
||||||
local _M = {}
|
local _M = {}
|
||||||
if module then -- heuristic for exporting a global package table
|
if module then -- heuristic for exporting a global package table
|
||||||
|
Loading…
Reference in New Issue
Block a user