summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-06 19:53:12 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-06 19:53:12 +1100
commitf4172ddb0ab410199786c468efa0fffcda34e2c5 (patch)
tree1006f3ae2d4739e82d2c107060b4bd95aab9a6b1
parent30cd76371d992df610b36d63b9c83074b4a87372 (diff)
downloadfengari-f4172ddb0ab410199786c468efa0fffcda34e2c5.tar.gz
fengari-f4172ddb0ab410199786c468efa0fffcda34e2c5.tar.bz2
fengari-f4172ddb0ab410199786c468efa0fffcda34e2c5.zip
src/lauxlib.js: Remove unrequired Uint8Array.from call
-rw-r--r--src/lauxlib.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js
index e6d407f..8f8d8e7 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -835,8 +835,7 @@ if (typeof process === "undefined") {
} else {
lua.lua_pushfstring(L, lua.to_luastring("@%s"), filename);
try {
- let jsfilename = Uint8Array.from(filename);
- lf.f = fs.openSync(jsfilename, "r");
+ lf.f = fs.openSync(filename, "r");
} catch (e) {
return errfile(L, "open", fnameindex, e);
}