Skip to content

Commit abd285a

Browse files
authored
Merge pull request #342 from jloleysens/fix/call-original-fsBinding-open
Fix source of open FSREQCALLBACK handles
2 parents 313cd08 + 9bbd987 commit abd285a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/readfilecontext.js

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ exports.getReadFileContextPrototype = function() {
1717
let proto;
1818
fsBinding.open = (_path, _flags, _mode, req) => {
1919
proto = Object.getPrototypeOf(req.context);
20+
return originalOpen.apply(fsBinding, [_path, _flags, _mode, req]);
2021
};
2122

2223
fs.readFile('/ignored.txt', () => {});

0 commit comments

Comments
 (0)