We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 074c8dd commit 9ec74c9Copy full SHA for 9ec74c9
1 file changed
test/parallel/test-vfs.js
@@ -39,7 +39,6 @@ common.expectWarning(
39
process.on('warning', common.mustCall());
40
41
const originalStat = Module._stat;
42
-// TODO(aduh95): We'd like to have a better way to achieve this without monkey-patching.
43
Module._stat = function(filename) {
44
if (!filename.startsWith(process.execPath)) {
45
return originalStat(filename);
@@ -60,6 +59,7 @@ Module._stat = function(filename) {
60
59
};
61
62
const originalReadFileSync = fs.readFileSync;
+// TODO(aduh95): We'd like to have a better way to achieve this without monkey-patching fs.
63
fs.readFileSync = function readFileSync(pathArgument, options) {
64
if (!pathArgument.startsWith(process.execPath)) {
65
return originalReadFileSync.apply(this, arguments);
0 commit comments