diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-02 08:12:49 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-02 08:12:49 +0200 |
commit | 32ac0ddc175affc1cf166dcf4197a33bcbd53e5b (patch) | |
tree | 6d5ce384845b983fffaf012eb33fdff2795b545c /src/loslib.js | |
parent | 30264bbc1998ab6640afdc31c348ca6167ca6191 (diff) | |
download | fengari-32ac0ddc175affc1cf166dcf4197a33bcbd53e5b.tar.gz fengari-32ac0ddc175affc1cf166dcf4197a33bcbd53e5b.tar.bz2 fengari-32ac0ddc175affc1cf166dcf4197a33bcbd53e5b.zip |
os.execute echo stdout
Diffstat (limited to 'src/loslib.js')
-rw-r--r-- | src/loslib.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/loslib.js b/src/loslib.js index cb82bc3..65d7e72 100644 --- a/src/loslib.js +++ b/src/loslib.js @@ -157,7 +157,7 @@ if (typeof require === "function") { return lauxlib.luaL_execresult(L, false, e); } - // if (out) console.log(out); + if (out) console.log(out.asciiSlice()); return lauxlib.luaL_execresult(L, true); } else { @@ -168,7 +168,7 @@ if (typeof require === "function") { lua.lua_pushboolean(L, 0); } - // if (out) console.log(out); + if (out) console.log(out.asciiSlice()); return 1; } |