Skip to content

Commit

Permalink
Merge pull request #342 from jloleysens/fix/call-original-fsBinding-open
Browse files Browse the repository at this point in the history
Fix source of open FSREQCALLBACK handles
  • Loading branch information
tschaub committed Nov 8, 2021
2 parents 313cd08 + 9bbd987 commit abd285a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/readfilecontext.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exports.getReadFileContextPrototype = function() {
let proto;
fsBinding.open = (_path, _flags, _mode, req) => {
proto = Object.getPrototypeOf(req.context);
return originalOpen.apply(fsBinding, [_path, _flags, _mode, req]);
};

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

0 comments on commit abd285a

Please # to comment.