summaryrefslogtreecommitdiff
path: root/src/loslib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-02 08:12:49 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-02 08:12:49 +0200
commit32ac0ddc175affc1cf166dcf4197a33bcbd53e5b (patch)
tree6d5ce384845b983fffaf012eb33fdff2795b545c /src/loslib.js
parent30264bbc1998ab6640afdc31c348ca6167ca6191 (diff)
downloadfengari-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.js4
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;
}