diff options
| author | OpportunityLiu <[email protected]> | 2019-07-17 13:11:53 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-19 11:48:32 +0800 |
| commit | c435e94919e7ee83b0a1ae4aeb589362422343bd (patch) | |
| tree | 97a1268141a8c2f4be21f85dbd838e768a1d93c6 | |
| parent | d9560889580bfe3c58f2f3f09b2f52ed3a03a36f (diff) | |
fix lines
| -rw-r--r-- | xmake/core/sandbox/modules/io.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
