Closed scarabdesign closed 5 years ago
I'm hitting this too (on Node 11.1.0).
@43081j: are you still maintaining this? Would you accept a PR to fix it?
In case it helps anyone else hitting this issue, I've worked around it by shimming fs.close
like this:
function shimFs() {
var fsClose = fs.close;
fs.close = function(fd, callback) {
fsClose(fd, callback || function() {});
};
}
I haven't had much time lately to maintain this, sorry about that.
There are a few stale PRs that refactor/cleanup but im tempted to just get on with my typescript rewrite and ship that this weekend. We will see how it goes, ill try sort the bugs out either way
Running against Node 11.5, but according to fs docs, a callback was required since 10. To test, I inserted a noop function and it worked fine.