diff options
author | Lua Team <team@lua.org> | 2005-05-20 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2005-05-20 12:00:00 +0000 |
commit | bf6b5550cdfbc0c4a3a4577776ad76628d80718e (patch) | |
tree | d714ef8ac5581536c0f8bb2c8e90e2b8207799b1 /test/luac.lua | |
parent | e6ddfd3b09c0a3727afc773029c323a3defe50fa (diff) | |
download | lua-github-5.1-work6.tar.gz |
Lua 5.1-work65.1-work6
Diffstat (limited to 'test/luac.lua')
-rw-r--r-- | test/luac.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/luac.lua b/test/luac.lua index b009ae9d..adae1b29 100644 --- a/test/luac.lua +++ b/test/luac.lua @@ -3,5 +3,5 @@ assert(arg[1]~=nil and arg[2]==nil,"usage: lua luac.lua file.lua") f=assert(io.open("luac.out","wb")) -f:write(string.dump(assert(loadfile(arg[1])))) -io.close(f) +assert(f:write(string.dump(assert(loadfile(arg[1]))))) +assert(io.close(f)) |