summaryrefslogtreecommitdiff
path: root/src/loadlib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-28 18:39:22 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-28 20:25:17 +1100
commitece4f00e30783cf186fd29f6c4f623306f2b2fd7 (patch)
treea321155b0dd731911347abf4c099d79c20dab230 /src/loadlib.js
parentad9d1bef4abdf64a447964a5018cb01fd640f3b0 (diff)
downloadfengari-ece4f00e30783cf186fd29f6c4f623306f2b2fd7.tar.gz
fengari-ece4f00e30783cf186fd29f6c4f623306f2b2fd7.tar.bz2
fengari-ece4f00e30783cf186fd29f6c4f623306f2b2fd7.zip
src/{load,los}lib.js: Remove extraneous Uint8Array.from calls
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;