summaryrefslogtreecommitdiff
path: root/src/loadlib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/loadlib.js')
-rw-r--r--src/loadlib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loadlib.js b/src/loadlib.js
index bb7792a..0be1742 100644
--- a/src/loadlib.js
+++ b/src/loadlib.js
@@ -133,7 +133,7 @@ if (typeof process !== "undefined") { // Only with Node
readable = function(filename) {
try {
- let fd = fs.openSync(Uint8Array.from(filename), 'r');
+ let fd = fs.openSync(filename, 'r');
fs.closeSync(fd);
} catch (e) {
return false;