From f4172ddb0ab410199786c468efa0fffcda34e2c5 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sat, 6 Jan 2018 19:53:12 +1100 Subject: src/lauxlib.js: Remove unrequired Uint8Array.from call --- src/lauxlib.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lauxlib.js') 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); } -- cgit v1.2.3-54-g00ecf