summaryrefslogtreecommitdiff
path: root/src/loadlib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-12 09:02:43 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-12 09:02:43 +0200
commitef82425b8828de7c825c6d61e93e6c5a47d84348 (patch)
treec3a91534204a519505dcb00ffcd1176814d9050b /src/loadlib.js
parent5db1f1f6d5dc1f0e21a0bdf0aae87f3d7aa96fc0 (diff)
parent6a3290116941015ac63cf3857c45247f140fab45 (diff)
downloadfengari-ef82425b8828de7c825c6d61e93e6c5a47d84348.tar.gz
fengari-ef82425b8828de7c825c6d61e93e6c5a47d84348.tar.bz2
fengari-ef82425b8828de7c825c6d61e93e6c5a47d84348.zip
Merge remote-tracking branch 'daurnimator/master'
Diffstat (limited to 'src/loadlib.js')
-rw-r--r--src/loadlib.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/loadlib.js b/src/loadlib.js
index c70e7f9..c43f498 100644
--- a/src/loadlib.js
+++ b/src/loadlib.js
@@ -88,12 +88,11 @@ if (!WEB) {
try {
fd = fs.openSync(lua.to_jsstring(filename), 'r');
+ fs.closeSync(fd);
} catch (e) {
return false;
}
- fs.closeSync(fd);
-
return true;
};
}