diff --git a/lib/readfilecontext.js b/lib/readfilecontext.js index 4bd66ee..061ced2 100644 --- a/lib/readfilecontext.js +++ b/lib/readfilecontext.js @@ -17,6 +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]); }; fs.readFile('/ignored.txt', () => {});