diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-28 18:39:22 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-28 20:25:17 +1100 |
commit | ece4f00e30783cf186fd29f6c4f623306f2b2fd7 (patch) | |
tree | a321155b0dd731911347abf4c099d79c20dab230 /src/loslib.js | |
parent | ad9d1bef4abdf64a447964a5018cb01fd640f3b0 (diff) | |
download | fengari-ece4f00e30783cf186fd29f6c4f623306f2b2fd7.tar.gz fengari-ece4f00e30783cf186fd29f6c4f623306f2b2fd7.tar.bz2 fengari-ece4f00e30783cf186fd29f6c4f623306f2b2fd7.zip |
src/{load,los}lib.js: Remove extraneous Uint8Array.from calls
Diffstat (limited to 'src/loslib.js')
-rw-r--r-- | src/loslib.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/loslib.js b/src/loslib.js index 83da409..ecd42f1 100644 --- a/src/loslib.js +++ b/src/loslib.js @@ -208,7 +208,6 @@ if (typeof process === "undefined") { syslib.remove = function(L) { let filename = lauxlib.luaL_checkstring(L, 1); try { - filename = Uint8Array.from(filename); if (fs.lstatSync(filename).isDirectory()) { fs.rmdirSync(filename); } else { @@ -224,8 +223,6 @@ if (typeof process === "undefined") { let fromname = lauxlib.luaL_checkstring(L, 1); let toname = lauxlib.luaL_checkstring(L, 2); try { - fromname = Uint8Array.from(fromname); - toname = Uint8Array.from(toname); fs.renameSync(fromname, toname); } catch (e) { return lauxlib.luaL_fileresult(L, false, false, e); @@ -246,7 +243,7 @@ if (typeof process === "undefined") { if (cmd !== null) { try { child_process.execSync( - Uint8Array.from(cmd), + cmd, { stdio: [process.stdin, process.stdout, process.stderr] } |