From c435e94919e7ee83b0a1ae4aeb589362422343bd Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Wed, 17 Jul 2019 13:11:53 +0800 Subject: fix lines --- xmake/core/sandbox/modules/io.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmake/core/sandbox/modules/io.lua b/xmake/core/sandbox/modules/io.lua index 69cd22b76..49cb1b509 100644 --- a/xmake/core/sandbox/modules/io.lua +++ b/xmake/core/sandbox/modules/io.lua @@ -53,6 +53,8 @@ if sandbox_io_file.__index ~= sandbox_io_file then end end end + -- file:lines does not use its second return value for error + sandbox_io_file.lines = io.file.lines end -- get file size -- cgit v1.3.1