aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}