From 32ac0ddc175affc1cf166dcf4197a33bcbd53e5b Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 2 May 2017 08:12:49 +0200 Subject: os.execute echo stdout --- src/loslib.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2