diff --git a/lib/readfilecontext.js b/lib/readfilecontext.js index 061ced2..bead642 100644 --- a/lib/readfilecontext.js +++ b/lib/readfilecontext.js @@ -17,7 +17,7 @@ exports.getReadFileContextPrototype = function() { let proto; fsBinding.open = (_path, _flags, _mode, req) => { proto = Object.getPrototypeOf(req.context); - originalOpen.apply(fsBinding, [_path, _flags, _mode, req]); + return originalOpen.apply(fsBinding, [_path, _flags, _mode, req]); }; fs.readFile('/ignored.txt', () => {});